Tom Butcher 7d8031e009 Route IPC through desktop notify and remove CLI OTP prompting.
OTP authentication is now handled by the desktop UI instead of stdin prompts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 22:03:11 +01:00

24 lines
463 B
JavaScript

import os from "os";
export function getDeviceInfo() {
return {
os: {
platform: os.platform(),
type: os.type(),
release: os.release(),
arch: os.arch(),
hostname: os.hostname(),
},
cpu: {
cores: os.cpus().length,
model: os.cpus()[0].model,
speedMHz: os.cpus()[0].speed,
},
user: os.userInfo(),
process: {
nodeVersion: process.version,
execPath: process.execPath,
},
};
}