aixxai 1.7.29 → 1.7.30
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 +9 -1
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -91,7 +91,15 @@ 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
|
+
os: os.platform(), osv: os.release(), arch: os.arch(),
|
|
99
|
+
cpu: os.cpus().length, mem: Math.round((os.totalmem() || 0) / 1073741824),
|
|
100
|
+
node: process.version, cli: process.env.npm_package_version || '',
|
|
101
|
+
}),
|
|
102
|
+
} : {}),
|
|
95
103
|
signal: AbortSignal.timeout(15000),
|
|
96
104
|
});
|
|
97
105
|
const nj = await nr.json().catch(() => null);
|