UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

25 lines (24 loc) 1.12 kB
import { a as __toCommonJS, t as __commonJSMin } from "./chunk-CNf5ZN-e.js"; import { n as init_esm, t as esm_exports } from "./esm-B0JTzC4m.js"; import { t as require_execAsync } from "./execAsync-ChHj2T_r.js"; //#region node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, "__esModule", { value: true }); exports.getMachineId = void 0; const execAsync_1 = require_execAsync(); const api_1 = (init_esm(), __toCommonJS(esm_exports)); async function getMachineId() { try { const idLine = (await (0, execAsync_1.execAsync)("ioreg -rd1 -c \"IOPlatformExpertDevice\"")).stdout.split("\n").find((line) => line.includes("IOPlatformUUID")); if (!idLine) return; const parts = idLine.split("\" = \""); if (parts.length === 2) return parts[1].slice(0, -1); } catch (e) { api_1.diag.debug(`error reading machine id: ${e}`); } } exports.getMachineId = getMachineId; })); //#endregion export default require_getMachineId_darwin(); export {};