xiaozuoassistant 0.1.48 → 0.1.49

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 +3 -1
  2. package/package.json +3 -2
package/bin/cli.js CHANGED
@@ -22,6 +22,8 @@ const __dirname = path.dirname(__filename);
22
22
  // When installed globally: lib/node_modules/xiaozuoassistant/bin/cli.js -> ../
23
23
  const packageRoot = path.resolve(__dirname, '..');
24
24
 
25
+ const binName = path.basename(process.argv[1] || 'xiaozuoAssistant');
26
+
25
27
  const args = process.argv.slice(2);
26
28
  const command = args[0];
27
29
  const commandArgs = args.slice(1);
@@ -646,7 +648,7 @@ if (command === 'start') {
646
648
  ensureAppHome();
647
649
  stopServer();
648
650
  } else {
649
- console.log('Usage: xiaozuoAssistant <command>');
651
+ console.log(`Usage: ${binName} <command>`);
650
652
  console.log('Commands:');
651
653
  console.log(' start Start the xiaozuoAssistant server');
652
654
  console.log(' stop Stop the xiaozuoAssistant server');
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "xiaozuoassistant",
3
3
  "private": false,
4
4
  "description": "Your personal, locally-hosted AI assistant for office productivity.",
5
- "version": "0.1.48",
5
+ "version": "0.1.49",
6
6
  "author": "mantle.lau",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -20,7 +20,8 @@
20
20
  "type": "module",
21
21
  "main": "dist/server/index.js",
22
22
  "bin": {
23
- "xiaozuoAssistant": "bin/cli.js"
23
+ "xiaozuoAssistant": "bin/cli.js",
24
+ "mybot": "bin/cli.js"
24
25
  },
25
26
  "files": [
26
27
  "dist",