aixxai 1.7.29 → 1.7.31

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.29",
3
+ "version": "1.7.31",
4
4
  "description": "AIXX CLI - 让你的AI调用万物。查全球算力行情(B300/H100价格租价·答案带数据时间)+调用全球AI模型。By AIXX (Wanan Exchange). 安装:npx aixxai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -91,7 +91,16 @@ async function nakedRegisterFlow() {
91
91
  } catch (e) {}
92
92
  const nr = await fetch('https://console.aixx.ai/bridge/naked/register', {
93
93
  method: 'POST', headers: { 'Content-Type': 'application/json' },
94
- body: JSON.stringify(openCode ? { code: openCode } : {}),
94
+ // 1204 K哥令"更多的了解": 装机画像主动上报(OS/版本/CPU架构/内存GB/Node/CLI版本)——bridge落naked_install_log.profile
95
+ body: JSON.stringify(openCode ? {
96
+ code: openCode,
97
+ profile: JSON.stringify({
98
+ host: os.hostname(), // 1204 K哥令: 设备名上报——自家PC一眼可认(IP动态也不怕)
99
+ os: os.platform(), osv: os.release(), arch: os.arch(),
100
+ cpu: os.cpus().length, mem: Math.round((os.totalmem() || 0) / 1073741824),
101
+ node: process.version, cli: process.env.npm_package_version || '',
102
+ }),
103
+ } : {}),
95
104
  signal: AbortSignal.timeout(15000),
96
105
  });
97
106
  const nj = await nr.json().catch(() => null);