aixxai 1.7.12 → 1.7.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aixxai",
3
- "version": "1.7.12",
3
+ "version": "1.7.14",
4
4
  "description": "AIXX CLI - 让你的AI调用万物。One command, every AI model. By AIXX (Wanan Exchange), the verification-first compute exchange. 安装:npx aixxai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -109,7 +109,12 @@ export async function balance(subArgs) {
109
109
  : Math.max(40 - (dataApi.today_counted || 0), 0);
110
110
  console.log('── GPU 行情数据 API ──');
111
111
  console.log(`📊 档位:${dataApi.tier === 'sub' ? '订阅中' : '免费档'}${dataApi.sub_expires_at ? `(至 ${String(dataApi.sub_expires_at).slice(0, 10)})` : ''}`);
112
- console.log(`📊 免费额度:剩 ${left} / ${dataApi.free_quota} 次(今日已用 ${dataApi.today_counted})`);
112
+ if (dataApi.tier === 'sub') {
113
+ // 1123质检P3a: 订阅态隐藏免费额度行(80/80烧干数字对订阅用户=噪音+误导"没额度了")
114
+ console.log('📊 订阅速率:60次/分 · 3000次/日 · 六域全开');
115
+ } else {
116
+ console.log(`📊 免费额度:剩 ${left} / ${dataApi.free_quota} 次(今日已用 ${dataApi.today_counted})`);
117
+ }
113
118
  if (left <= 0) {
114
119
  // 1121终验新增: lifetime耗尽分支——"明日重置"对lifetime耗尽者=空头承诺(0点后撞403)
115
120
  console.log('🚫 免费档总量已用完——日重置不恢复总量,升级订阅档继续使用');
@@ -19,7 +19,7 @@ export async function rotate() {
19
19
  const key = loadApiKey();
20
20
  if (!key) {
21
21
  console.error('❌ 本机未找到key——先运行 npx aixxai install');
22
- process.exit(1);
22
+ process.exitCode = 1;
23
23
  }
24
24
  if (!key.startsWith('wan_dat_')) {
25
25
  console.log('ℹ️ 本机是装机身份key(sk-开头·New-API token体系)——轮换方式:');
@@ -55,12 +55,12 @@ export async function rotate() {
55
55
  }
56
56
  } else {
57
57
  console.error(`❌ 轮换失败: ${(j && (j.detail && j.detail[0] && j.detail[0].msg) || j.message) || 'HTTP ' + r.status}`);
58
- process.exit(1);
58
+ process.exitCode = 1; // 1123: exit()撞pending句柄=UV_HANDLE_CLOSING崩溃·exitCode自然排空
59
59
  }
60
60
  } catch (err) {
61
61
  const hasPx = !!(process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy);
62
62
  console.error('❌ 网络异常: ' + (err?.message || err) + (hasPx ? '(检测到代理环境·请确认代理可用)' : ''));
63
63
  console.error(' 本次失败与令牌无关,稍后重试 aixx rotate。');
64
- process.exit(1);
64
+ process.exitCode = 1;
65
65
  }
66
66
  }
@@ -102,7 +102,11 @@ export async function status() {
102
102
  if (u && u.ok) {
103
103
  const left = u.free_quota - u.free_used;
104
104
  console.log(`📊 档位:${u.tier === 'sub' ? '订阅中' : '免费档'}${u.sub_expires_at ? `(至 ${String(u.sub_expires_at).slice(0, 10)})` : ''}`);
105
+ if (u.tier === 'sub') {
106
+ console.log('📊 订阅速率:60次/分 · 3000次/日 · 六域全开'); // 1123 P3a: 订阅态隐藏free行
107
+ } else {
105
108
  console.log(`📊 免费额度:剩 ${left} / ${u.free_quota} 次(今日已用 ${u.today_counted})`);
109
+ }
106
110
  } else {
107
111
  console.log('⚠️ ' + ((u && (u.error || u.message)) || '查询失败'));
108
112
  }
@@ -30,7 +30,7 @@ export async function subscribe(subArgs) {
30
30
  console.log('示例:');
31
31
  console.log(' aixx subscribe 1m 一个月档(支付宝扫码/打开)');
32
32
  console.log(' aixx subscribe 12m --channel usdt 年档USDT付款');
33
- console.log('\n订阅=行情数据API六域全开(80次免费额度之外的不限量档)。');
33
+ console.log('\n订阅=行情数据API六域全开(速率60次/分·3000次/日·免费80次额度之外的高流量档)。');
34
34
  return;
35
35
  }
36
36