aixxai 1.5.8 → 1.6.0

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.
Binary file
package/bin/aixx.js CHANGED
@@ -35,10 +35,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
35
35
  const VERSION = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8')).version;
36
36
 
37
37
  // 默认AIXX后端地址
38
- // ⚠️ 安全警告:当前用HTTP明文传输API Key(http://),存在凭据被嗅探风险。
39
38
  // 会话16换门:统一走域名网关入口(详见 src/utils/env.js 注释)
39
+ // 卡170(1011)换门二: baodan.run网关的/api/*全归爆单后端(CLI注册/login/token 404断链39天)——账号管理与模型调用统一走萬安云自有域名console.aixx.ai
40
40
  // 改完后请全局搜索 "安全警告" 同步更新 env.js 与 templates/QUICKSTART.md 中的同名地址。
41
- export const DEFAULT_BASE_URL = 'https://baodan.run/v1';
41
+ export const DEFAULT_BASE_URL = 'https://console.aixx.ai/v1';
42
42
 
43
43
  // 命令表:所有子命令的单一来源(新增命令在这里加一行即可)。
44
44
  // 未知命令的"你想用的是不是"近似匹配也从这张表取已知命令名,不另写一份。
@@ -108,6 +108,13 @@ async function main() {
108
108
  showHelp(VERSION);
109
109
  break;
110
110
  default: {
111
+ // 卡170(1011 K哥令"安装命令带唯一码"): 未知参数不再直接报错——当作码传给 install。
112
+ // 覆盖 npx aixxai <CODE>(不带 install 子命令)的用法;install 内部会先查云侧区分绑定码/推荐码。
113
+ const installEntry = COMMANDS.find(c => c.name === 'install');
114
+ if (installEntry && command && !command.startsWith('-')) {
115
+ await installEntry.run([command, ...subArgs]);
116
+ return;
117
+ }
111
118
  console.error(`未知命令: ${command}`);
112
119
  const guesses = didYouMean(command);
113
120
  if (guesses.length > 0) {
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "name": "aixxai",
3
- "version": "1.5.8",
4
- "description": "AIXX CLI - 让你的AI调用万物。安装:npx aixxai",
5
- "type": "module",
6
- "bin": {
7
- "aixx": "./bin/aixx.js"
8
- },
9
- "scripts": {
10
- "test": "node bin/aixx.js --version"
11
- },
12
- "keywords": [
13
- "aixx",
14
- "ai",
15
- "llm",
16
- "gateway",
17
- "openai",
18
- "deepseek",
19
- "glm",
20
- "kimi",
21
- "skill",
22
- "agent"
23
- ],
24
- "author": "AIXX",
25
- "license": "ISC",
26
- "homepage": "https://gitee.com/kk0803/token-hub",
27
- "repository": {
28
- "type": "git",
29
- "url": "https://gitee.com/kk0803/token-hub.git"
30
- },
31
- "engines": {
32
- "node": ">=18"
33
- }
34
- }
1
+ {
2
+ "name": "aixxai",
3
+ "version": "1.6.0",
4
+ "description": "AIXX CLI - 让你的AI调用万物。安装:npx aixxai",
5
+ "type": "module",
6
+ "bin": {
7
+ "aixx": "./bin/aixx.js"
8
+ },
9
+ "scripts": {
10
+ "test": "node bin/aixx.js --version"
11
+ },
12
+ "keywords": [
13
+ "aixx",
14
+ "ai",
15
+ "llm",
16
+ "gateway",
17
+ "openai",
18
+ "deepseek",
19
+ "glm",
20
+ "kimi",
21
+ "skill",
22
+ "agent"
23
+ ],
24
+ "author": "AIXX",
25
+ "license": "ISC",
26
+ "homepage": "https://gitee.com/kk0803/token-hub",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://gitee.com/kk0803/token-hub.git"
30
+ },
31
+ "engines": {
32
+ "node": ">=18"
33
+ }
34
+ }