UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

1 lines 811 B
import{c as e,i as t,n,r,s as i}from"./chunk-5MU5Z6L3-CrYztnvh.js";import{t as a}from"./chunk-NWCAEW5Y-ClfmNvkQ.js";import{fileURLToPath as o}from"url";import{createRequire as s}from"module";import c from"path";s(import.meta.url);const l=o(import.meta.url);c.dirname(l);var u=t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMachineId=void 0;var o=r(`process`),s=a(),c=(n(),i(e));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}t.getMachineId=l})();export{u as default};