eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
2 lines • 699 B
JavaScript
import{c as e,i as t,n,s as r}from"./chunk-5MU5Z6L3-CrYztnvh.js";import{t as i}from"./chunk-NWCAEW5Y-ClfmNvkQ.js";import{fileURLToPath as a}from"url";import{createRequire as o}from"module";import s from"path";o(import.meta.url);const c=a(import.meta.url);s.dirname(c);var l=t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMachineId=void 0;var a=i(),o=(n(),r(e));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
`).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}t.getMachineId=s})();export{l as default};