@vm0/cli 9.119.0 → 9.119.1
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/chunk-BMCQ2T6Q.js +1708 -0
- package/chunk-BMCQ2T6Q.js.map +1 -0
- package/chunk-MPKRH4AA.js +17 -0
- package/chunk-MPKRH4AA.js.map +1 -0
- package/{chunk-BESNYOIM.js → chunk-Y5MLJMUZ.js} +70927 -31865
- package/chunk-Y5MLJMUZ.js.map +1 -0
- package/getMachineId-bsd-PR7QRJD5.js +35 -0
- package/getMachineId-bsd-PR7QRJD5.js.map +1 -0
- package/getMachineId-darwin-UPRGUB4T.js +35 -0
- package/getMachineId-darwin-UPRGUB4T.js.map +1 -0
- package/getMachineId-linux-ATTLS4CQ.js +29 -0
- package/getMachineId-linux-ATTLS4CQ.js.map +1 -0
- package/getMachineId-unsupported-VCVC2PWL.js +20 -0
- package/getMachineId-unsupported-VCVC2PWL.js.map +1 -0
- package/getMachineId-win-OHEXEVPP.js +37 -0
- package/getMachineId-win-OHEXEVPP.js.map +1 -0
- package/index.js +43 -632
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/zero.js +6 -4
- package/zero.js.map +1 -1
- package/chunk-BESNYOIM.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
execAsync
|
|
6
|
+
} from "./chunk-MPKRH4AA.js";
|
|
7
|
+
import {
|
|
8
|
+
diag,
|
|
9
|
+
init_esm,
|
|
10
|
+
init_esm_shims
|
|
11
|
+
} from "./chunk-BMCQ2T6Q.js";
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
import { promises as fs } from "fs";
|
|
16
|
+
init_esm();
|
|
17
|
+
async function getMachineId() {
|
|
18
|
+
try {
|
|
19
|
+
const result = await fs.readFile("/etc/hostid", { encoding: "utf8" });
|
|
20
|
+
return result.trim();
|
|
21
|
+
} catch (e) {
|
|
22
|
+
diag.debug(`error reading machine id: ${e}`);
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const result = await execAsync("kenv -q smbios.system.uuid");
|
|
26
|
+
return result.stdout.trim();
|
|
27
|
+
} catch (e) {
|
|
28
|
+
diag.debug(`error reading machine id: ${e}`);
|
|
29
|
+
}
|
|
30
|
+
return void 0;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
getMachineId
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=getMachineId-bsd-PR7QRJD5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-bsd.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { promises as fs } from 'fs';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await fs.readFile('/etc/hostid', { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n try {\n const result = await execAsync('kenv -q smbios.system.uuid');\n return result.stdout.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;AAAA;AAKA,SAAS,YAAY,UAAU;AAE/B;AAEA,eAAsB,eAAY;AAChC,MAAI;AACF,UAAM,SAAS,MAAM,GAAG,SAAS,eAAe,EAAE,UAAU,OAAM,CAAE;AACpE,WAAO,OAAO,KAAI;WACX,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,MAAI;AACF,UAAM,SAAS,MAAM,UAAU,4BAA4B;AAC3D,WAAO,OAAO,OAAO,KAAI;WAClB,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
execAsync
|
|
6
|
+
} from "./chunk-MPKRH4AA.js";
|
|
7
|
+
import {
|
|
8
|
+
diag,
|
|
9
|
+
init_esm,
|
|
10
|
+
init_esm_shims
|
|
11
|
+
} from "./chunk-BMCQ2T6Q.js";
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
init_esm();
|
|
16
|
+
async function getMachineId() {
|
|
17
|
+
try {
|
|
18
|
+
const result = await execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
|
19
|
+
const idLine = result.stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
|
|
20
|
+
if (!idLine) {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
const parts = idLine.split('" = "');
|
|
24
|
+
if (parts.length === 2) {
|
|
25
|
+
return parts[1].slice(0, -1);
|
|
26
|
+
}
|
|
27
|
+
} catch (e) {
|
|
28
|
+
diag.debug(`error reading machine id: ${e}`);
|
|
29
|
+
}
|
|
30
|
+
return void 0;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
getMachineId
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=getMachineId-darwin-UPRGUB4T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-darwin.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await execAsync('ioreg -rd1 -c \"IOPlatformExpertDevice\"');\n\n const idLine = result.stdout\n .split('\\n')\n .find(line => line.includes('IOPlatformUUID'));\n\n if (!idLine) {\n return undefined;\n }\n\n const parts = idLine.split('\" = \"');\n if (parts.length === 2) {\n return parts[1].slice(0, -1);\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;AAAA;AAMA;AAEA,eAAsB,eAAY;AAChC,MAAI;AACF,UAAM,SAAS,MAAM,UAAU,wCAAwC;AAEvE,UAAM,SAAS,OAAO,OACnB,MAAM,IAAI,EACV,KAAK,UAAQ,KAAK,SAAS,gBAAgB,CAAC;AAE/C,QAAI,CAAC,QAAQ;AACX,aAAO;;AAGT,UAAM,QAAQ,OAAO,MAAM,OAAO;AAClC,QAAI,MAAM,WAAW,GAAG;AACtB,aAAO,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE;;WAEtB,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
diag,
|
|
6
|
+
init_esm,
|
|
7
|
+
init_esm_shims
|
|
8
|
+
} from "./chunk-BMCQ2T6Q.js";
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
11
|
+
init_esm_shims();
|
|
12
|
+
init_esm();
|
|
13
|
+
import { promises as fs } from "fs";
|
|
14
|
+
async function getMachineId() {
|
|
15
|
+
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
16
|
+
for (const path of paths) {
|
|
17
|
+
try {
|
|
18
|
+
const result = await fs.readFile(path, { encoding: "utf8" });
|
|
19
|
+
return result.trim();
|
|
20
|
+
} catch (e) {
|
|
21
|
+
diag.debug(`error reading machine id: ${e}`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
getMachineId
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=getMachineId-linux-ATTLS4CQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-linux.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { promises as fs } from 'fs';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];\n\n for (const path of paths) {\n try {\n const result = await fs.readFile(path, { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;AAAA;AAKA;AADA,SAAS,YAAY,UAAU;AAG/B,eAAsB,eAAY;AAChC,QAAM,QAAQ,CAAC,mBAAmB,0BAA0B;AAE5D,aAAW,QAAQ,OAAO;AACxB,QAAI;AACF,YAAM,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,UAAU,OAAM,CAAE;AAC3D,aAAO,OAAO,KAAI;aACX,GAAG;AACV,WAAK,MAAM,6BAA6B,CAAC,EAAE;;;AAI/C,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
diag,
|
|
6
|
+
init_esm,
|
|
7
|
+
init_esm_shims
|
|
8
|
+
} from "./chunk-BMCQ2T6Q.js";
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
11
|
+
init_esm_shims();
|
|
12
|
+
init_esm();
|
|
13
|
+
async function getMachineId() {
|
|
14
|
+
diag.debug("could not read machine-id: unsupported platform");
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
getMachineId
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=getMachineId-unsupported-VCVC2PWL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-unsupported.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n diag.debug('could not read machine-id: unsupported platform');\n return undefined;\n}\n"],"mappings":";;;;;;;;;;AAAA;AAKA;AAEA,eAAsB,eAAY;AAChC,OAAK,MAAM,iDAAiD;AAC5D,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
execAsync
|
|
6
|
+
} from "./chunk-MPKRH4AA.js";
|
|
7
|
+
import {
|
|
8
|
+
diag,
|
|
9
|
+
init_esm,
|
|
10
|
+
init_esm_shims
|
|
11
|
+
} from "./chunk-BMCQ2T6Q.js";
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
import * as process from "process";
|
|
16
|
+
init_esm();
|
|
17
|
+
async function getMachineId() {
|
|
18
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
19
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
20
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) {
|
|
21
|
+
command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const result = await execAsync(`${command} ${args}`);
|
|
25
|
+
const parts = result.stdout.split("REG_SZ");
|
|
26
|
+
if (parts.length === 2) {
|
|
27
|
+
return parts[1].trim();
|
|
28
|
+
}
|
|
29
|
+
} catch (e) {
|
|
30
|
+
diag.debug(`error reading machine id: ${e}`);
|
|
31
|
+
}
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
getMachineId
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=getMachineId-win-OHEXEVPP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@2.6.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-win.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as process from 'process';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const args =\n 'QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid';\n let command = '%windir%\\\\System32\\\\REG.exe';\n if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {\n command = '%windir%\\\\sysnative\\\\cmd.exe /c ' + command;\n }\n\n try {\n const result = await execAsync(`${command} ${args}`);\n const parts = result.stdout.split('REG_SZ');\n if (parts.length === 2) {\n return parts[1].trim();\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;AAAA;AAKA,YAAY,aAAa;AAEzB;AAEA,eAAsB,eAAY;AAChC,QAAM,OACJ;AACF,MAAI,UAAU;AACd,MAAY,iBAAS,UAAU,4BAAoC,aAAK;AACtE,cAAU,qCAAqC;;AAGjD,MAAI;AACF,UAAM,SAAS,MAAM,UAAU,GAAG,OAAO,IAAI,IAAI,EAAE;AACnD,UAAM,QAAQ,OAAO,OAAO,MAAM,QAAQ;AAC1C,QAAI,MAAM,WAAW,GAAG;AACtB,aAAO,MAAM,CAAC,EAAE,KAAI;;WAEf,GAAG;AACV,SAAK,MAAM,6BAA6B,CAAC,EAAE;;AAG7C,SAAO;AACT;","names":[]}
|