aixxai 1.5.7 → 1.5.8

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/README.md CHANGED
@@ -5,13 +5,15 @@
5
5
  ## 安装
6
6
 
7
7
  ```bash
8
- npx aixxai install
8
+ npx aixxai
9
9
  ```
10
10
 
11
+ (等价于 `npx aixxai install`,裸命令即安装)
12
+
11
13
  带推荐码安装(推荐人获分润):
12
14
 
13
15
  ```bash
14
- npx aixxai install zhangsan
16
+ npx aixxai zhangsan
15
17
  ```
16
18
 
17
19
  ## 命令
package/bin/aixx.js CHANGED
@@ -81,6 +81,15 @@ async function main() {
81
81
  const command = args[0];
82
82
  const subArgs = args.slice(1);
83
83
 
84
+ // 裸命令即安装(1007 K哥令:命令越短越好)——npx aixxai 直接进安装,帮助走 help/--help
85
+ if (command === undefined) {
86
+ const installEntry = COMMANDS.find(c => c.name === 'install');
87
+ if (installEntry) {
88
+ await installEntry.run(subArgs);
89
+ return;
90
+ }
91
+ }
92
+
84
93
  const entry = COMMANDS.find(c => c.name === command || c.aliases?.includes(command));
85
94
  if (entry) {
86
95
  await entry.run(subArgs);
@@ -96,7 +105,6 @@ async function main() {
96
105
  case '--help':
97
106
  case '-h':
98
107
  case 'help':
99
- case undefined:
100
108
  showHelp(VERSION);
101
109
  break;
102
110
  default: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aixxai",
3
- "version": "1.5.7",
4
- "description": "AIXX CLI - 让你的AI调用万物。安装:npx aixxai install",
3
+ "version": "1.5.8",
4
+ "description": "AIXX CLI - 让你的AI调用万物。安装:npx aixxai",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "aixx": "./bin/aixx.js"