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 +1 -1
- package/src/commands/install.js +10 -1
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -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
|
-
|
|
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);
|