@agentconnect.md/daemon 2.14.0-rc.71 → 2.14.0-rc.72
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/dist/{execAsync-g6MUMTSh.js → execAsync-CYLjr1mI.js} +4 -3
- package/dist/execAsync-CYLjr1mI.js.map +1 -0
- package/dist/{getMachineId-bsd-BvuwUL79.js → getMachineId-bsd-CscuxJBJ.js} +5 -4
- package/dist/getMachineId-bsd-CscuxJBJ.js.map +1 -0
- package/dist/{getMachineId-darwin-B0pCb2eZ.js → getMachineId-darwin-bM4EQ_P5.js} +9 -4
- package/dist/getMachineId-darwin-bM4EQ_P5.js.map +1 -0
- package/dist/{getMachineId-linux-B5rkHcDF.js → getMachineId-linux-Bp8YYQNS.js} +2 -2
- package/dist/{getMachineId-linux-B5rkHcDF.js.map → getMachineId-linux-Bp8YYQNS.js.map} +1 -1
- package/dist/{getMachineId-unsupported-BAdSnS1Y.js → getMachineId-unsupported-HPqOUN2d.js} +2 -2
- package/dist/{getMachineId-unsupported-BAdSnS1Y.js.map → getMachineId-unsupported-HPqOUN2d.js.map} +1 -1
- package/dist/{getMachineId-win-rcCGwu4B.js → getMachineId-win-CJMBi-d0.js} +3 -3
- package/dist/{getMachineId-win-rcCGwu4B.js.map → getMachineId-win-CJMBi-d0.js.map} +1 -1
- package/dist/index.js +1977 -999
- package/dist/index.js.map +1 -1
- package/dist/release.json +1 -1
- package/package.json +1 -1
- package/dist/execAsync-g6MUMTSh.js.map +0 -1
- package/dist/getMachineId-bsd-BvuwUL79.js.map +0 -1
- package/dist/getMachineId-darwin-B0pCb2eZ.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as util from "util";
|
|
2
2
|
import * as child_process from "child_process";
|
|
3
|
-
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
3
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/execAsync.mjs
|
|
4
4
|
const execAsync = util.promisify(child_process.exec);
|
|
5
|
-
|
|
5
|
+
const execFileAsync = util.promisify(child_process.execFile);
|
|
6
|
+
export { execFileAsync as n, execAsync as t };
|
|
6
7
|
|
|
7
|
-
//# sourceMappingURL=execAsync-
|
|
8
|
+
//# sourceMappingURL=execAsync-CYLjr1mI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execAsync-CYLjr1mI.js","names":[],"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/execAsync.mjs"],"sourcesContent":["import * as child_process from \"child_process\";\nimport * as util from \"util\";\n//#region src/detectors/platform/node/machine-id/execAsync.ts\nconst execAsync = util.promisify(child_process.exec);\nconst execFileAsync = util.promisify(child_process.execFile);\n//#endregion\nexport { execAsync, execFileAsync };\n\n//# sourceMappingURL=execAsync.mjs.map"],"ignoreList":[0],"mappings":";;;AAGA,MAAM,YAAY,KAAK,UAAU,cAAc,IAAI;AACnD,MAAM,gBAAgB,KAAK,UAAU,cAAc,QAAQ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as execFileAsync } from "./execAsync-CYLjr1mI.js";
|
|
2
2
|
import { t as diag } from "./diag-api-CZlGkYA6.js";
|
|
3
3
|
import { promises } from "fs";
|
|
4
|
-
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
4
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-bsd.mjs
|
|
5
|
+
const EXEC_TIMEOUT_MS = 5e3;
|
|
5
6
|
async function getMachineId() {
|
|
6
7
|
try {
|
|
7
8
|
return (await promises.readFile("/etc/hostid", { encoding: "utf8" })).trim();
|
|
@@ -9,11 +10,11 @@ async function getMachineId() {
|
|
|
9
10
|
diag.debug(`error reading machine id: ${e}`);
|
|
10
11
|
}
|
|
11
12
|
try {
|
|
12
|
-
return (await
|
|
13
|
+
return (await execFileAsync("/bin/kenv", ["-q", "smbios.system.uuid"], { timeout: EXEC_TIMEOUT_MS })).stdout.trim();
|
|
13
14
|
} catch (e) {
|
|
14
15
|
diag.debug(`error reading machine id: ${e}`);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
export { getMachineId };
|
|
18
19
|
|
|
19
|
-
//# sourceMappingURL=getMachineId-bsd-
|
|
20
|
+
//# sourceMappingURL=getMachineId-bsd-CscuxJBJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMachineId-bsd-CscuxJBJ.js","names":[],"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-bsd.mjs"],"sourcesContent":["import { execFileAsync } from \"./execAsync.mjs\";\nimport { diag } from \"@opentelemetry/api\";\nimport { promises } from \"fs\";\n//#region src/detectors/platform/node/machine-id/getMachineId-bsd.ts\nconst EXEC_TIMEOUT_MS = 5e3;\nasync function getMachineId() {\n\ttry {\n\t\treturn (await promises.readFile(\"/etc/hostid\", { encoding: \"utf8\" })).trim();\n\t} catch (e) {\n\t\tdiag.debug(`error reading machine id: ${e}`);\n\t}\n\ttry {\n\t\treturn (await execFileAsync(\"/bin/kenv\", [\"-q\", \"smbios.system.uuid\"], { timeout: EXEC_TIMEOUT_MS })).stdout.trim();\n\t} catch (e) {\n\t\tdiag.debug(`error reading machine id: ${e}`);\n\t}\n}\n//#endregion\nexport { getMachineId };\n\n//# sourceMappingURL=getMachineId-bsd.mjs.map"],"ignoreList":[0],"mappings":";;;;AAIA,MAAM,kBAAkB;AACxB,eAAe,eAAe;CAC7B,IAAI;EACH,QAAQ,MAAM,SAAS,SAAS,eAAe,EAAE,UAAU,OAAO,CAAC,EAAA,CAAG,KAAK;CAC5E,SAAS,GAAG;EACX,KAAK,MAAM,6BAA6B,GAAG;CAC5C;CACA,IAAI;EACH,QAAQ,MAAM,cAAc,aAAa,CAAC,MAAM,oBAAoB,GAAG,EAAE,SAAS,gBAAgB,CAAC,EAAA,CAAG,OAAO,KAAK;CACnH,SAAS,GAAG;EACX,KAAK,MAAM,6BAA6B,GAAG;CAC5C;AACD"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as execFileAsync } from "./execAsync-CYLjr1mI.js";
|
|
2
2
|
import { t as diag } from "./diag-api-CZlGkYA6.js";
|
|
3
|
-
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
3
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-darwin.mjs
|
|
4
|
+
const EXEC_TIMEOUT_MS = 5e3;
|
|
4
5
|
async function getMachineId() {
|
|
5
6
|
try {
|
|
6
|
-
const idLine = (await
|
|
7
|
+
const idLine = (await execFileAsync("/usr/sbin/ioreg", [
|
|
8
|
+
"-rd1",
|
|
9
|
+
"-c",
|
|
10
|
+
"IOPlatformExpertDevice"
|
|
11
|
+
], { timeout: EXEC_TIMEOUT_MS })).stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
|
|
7
12
|
if (!idLine) return;
|
|
8
13
|
const parts = idLine.split("\" = \"");
|
|
9
14
|
if (parts.length === 2) return parts[1].slice(0, -1);
|
|
@@ -13,4 +18,4 @@ async function getMachineId() {
|
|
|
13
18
|
}
|
|
14
19
|
export { getMachineId };
|
|
15
20
|
|
|
16
|
-
//# sourceMappingURL=getMachineId-darwin-
|
|
21
|
+
//# sourceMappingURL=getMachineId-darwin-bM4EQ_P5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMachineId-darwin-bM4EQ_P5.js","names":[],"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-darwin.mjs"],"sourcesContent":["import { execFileAsync } from \"./execAsync.mjs\";\nimport { diag } from \"@opentelemetry/api\";\n//#region src/detectors/platform/node/machine-id/getMachineId-darwin.ts\nconst EXEC_TIMEOUT_MS = 5e3;\nasync function getMachineId() {\n\ttry {\n\t\tconst idLine = (await execFileAsync(\"/usr/sbin/ioreg\", [\n\t\t\t\"-rd1\",\n\t\t\t\"-c\",\n\t\t\t\"IOPlatformExpertDevice\"\n\t\t], { timeout: EXEC_TIMEOUT_MS })).stdout.split(\"\\n\").find((line) => line.includes(\"IOPlatformUUID\"));\n\t\tif (!idLine) return;\n\t\tconst parts = idLine.split(\"\\\" = \\\"\");\n\t\tif (parts.length === 2) return parts[1].slice(0, -1);\n\t} catch (e) {\n\t\tdiag.debug(`error reading machine id: ${e}`);\n\t}\n}\n//#endregion\nexport { getMachineId };\n\n//# sourceMappingURL=getMachineId-darwin.mjs.map"],"ignoreList":[0],"mappings":";;;AAGA,MAAM,kBAAkB;AACxB,eAAe,eAAe;CAC7B,IAAI;EACH,MAAM,UAAU,MAAM,cAAc,mBAAmB;GACtD;GACA;GACA;EACD,GAAG,EAAE,SAAS,gBAAgB,CAAC,EAAA,CAAG,OAAO,MAAM,IAAI,CAAC,CAAC,MAAM,SAAS,KAAK,SAAS,gBAAgB,CAAC;EACnG,IAAI,CAAC,QAAQ;EACb,MAAM,QAAQ,OAAO,MAAM,SAAS;EACpC,IAAI,MAAM,WAAW,GAAG,OAAO,MAAM,EAAE,CAAC,MAAM,GAAG,EAAE;CACpD,SAAS,GAAG;EACX,KAAK,MAAM,6BAA6B,GAAG;CAC5C;AACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as diag } from "./diag-api-CZlGkYA6.js";
|
|
2
2
|
import { promises } from "fs";
|
|
3
|
-
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
3
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-linux.mjs
|
|
4
4
|
async function getMachineId() {
|
|
5
5
|
for (const path of ["/etc/machine-id", "/var/lib/dbus/machine-id"]) try {
|
|
6
6
|
return (await promises.readFile(path, { encoding: "utf8" })).trim();
|
|
@@ -10,4 +10,4 @@ async function getMachineId() {
|
|
|
10
10
|
}
|
|
11
11
|
export { getMachineId };
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=getMachineId-linux-
|
|
13
|
+
//# sourceMappingURL=getMachineId-linux-Bp8YYQNS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMachineId-linux-
|
|
1
|
+
{"version":3,"file":"getMachineId-linux-Bp8YYQNS.js","names":[],"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-linux.mjs"],"sourcesContent":["import { diag } from \"@opentelemetry/api\";\nimport { promises } from \"fs\";\n//#region src/detectors/platform/node/machine-id/getMachineId-linux.ts\nasync function getMachineId() {\n\tfor (const path of [\"/etc/machine-id\", \"/var/lib/dbus/machine-id\"]) try {\n\t\treturn (await promises.readFile(path, { encoding: \"utf8\" })).trim();\n\t} catch (e) {\n\t\tdiag.debug(`error reading machine id: ${e}`);\n\t}\n}\n//#endregion\nexport { getMachineId };\n\n//# sourceMappingURL=getMachineId-linux.mjs.map"],"ignoreList":[0],"mappings":";;;AAGA,eAAe,eAAe;CAC7B,KAAK,MAAM,QAAQ,CAAC,mBAAmB,0BAA0B,GAAG,IAAI;EACvE,QAAQ,MAAM,SAAS,SAAS,MAAM,EAAE,UAAU,OAAO,CAAC,EAAA,CAAG,KAAK;CACnE,SAAS,GAAG;EACX,KAAK,MAAM,6BAA6B,GAAG;CAC5C;AACD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as diag } from "./diag-api-CZlGkYA6.js";
|
|
2
|
-
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
2
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-unsupported.mjs
|
|
3
3
|
async function getMachineId() {
|
|
4
4
|
diag.debug("could not read machine-id: unsupported platform");
|
|
5
5
|
}
|
|
6
6
|
export { getMachineId };
|
|
7
7
|
|
|
8
|
-
//# sourceMappingURL=getMachineId-unsupported-
|
|
8
|
+
//# sourceMappingURL=getMachineId-unsupported-HPqOUN2d.js.map
|
package/dist/{getMachineId-unsupported-BAdSnS1Y.js.map → getMachineId-unsupported-HPqOUN2d.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMachineId-unsupported-
|
|
1
|
+
{"version":3,"file":"getMachineId-unsupported-HPqOUN2d.js","names":[],"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-unsupported.mjs"],"sourcesContent":["import { diag } from \"@opentelemetry/api\";\n//#region src/detectors/platform/node/machine-id/getMachineId-unsupported.ts\nasync function getMachineId() {\n\tdiag.debug(\"could not read machine-id: unsupported platform\");\n}\n//#endregion\nexport { getMachineId };\n\n//# sourceMappingURL=getMachineId-unsupported.mjs.map"],"ignoreList":[0],"mappings":";;AAEA,eAAe,eAAe;CAC7B,KAAK,MAAM,iDAAiD;AAC7D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as execAsync } from "./execAsync-
|
|
1
|
+
import { t as execAsync } from "./execAsync-CYLjr1mI.js";
|
|
2
2
|
import { t as diag } from "./diag-api-CZlGkYA6.js";
|
|
3
3
|
import * as process from "process";
|
|
4
|
-
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
4
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-win.mjs
|
|
5
5
|
async function getMachineId() {
|
|
6
6
|
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
7
7
|
let command = "%windir%\\System32\\REG.exe";
|
|
@@ -15,4 +15,4 @@ async function getMachineId() {
|
|
|
15
15
|
}
|
|
16
16
|
export { getMachineId };
|
|
17
17
|
|
|
18
|
-
//# sourceMappingURL=getMachineId-win-
|
|
18
|
+
//# sourceMappingURL=getMachineId-win-CJMBi-d0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMachineId-win-
|
|
1
|
+
{"version":3,"file":"getMachineId-win-CJMBi-d0.js","names":[],"sources":["../../../node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/machine-id/getMachineId-win.mjs"],"sourcesContent":["import { execAsync } from \"./execAsync.mjs\";\nimport { diag } from \"@opentelemetry/api\";\nimport * as process from \"process\";\n//#region src/detectors/platform/node/machine-id/getMachineId-win.ts\nasync function getMachineId() {\n\tconst args = \"QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid\";\n\tlet command = \"%windir%\\\\System32\\\\REG.exe\";\n\tif (process.arch === \"ia32\" && \"PROCESSOR_ARCHITEW6432\" in process.env) command = \"%windir%\\\\sysnative\\\\cmd.exe /c \" + command;\n\ttry {\n\t\tconst parts = (await execAsync(`${command} ${args}`)).stdout.split(\"REG_SZ\");\n\t\tif (parts.length === 2) return parts[1].trim();\n\t} catch (e) {\n\t\tdiag.debug(`error reading machine id: ${e}`);\n\t}\n}\n//#endregion\nexport { getMachineId };\n\n//# sourceMappingURL=getMachineId-win.mjs.map"],"ignoreList":[0],"mappings":";;;;AAIA,eAAe,eAAe;CAC7B,MAAM,OAAO;CACb,IAAI,UAAU;CACd,IAAI,QAAQ,SAAS,UAAU,4BAA4B,QAAQ,KAAK,UAAU,qCAAqC;CACvH,IAAI;EACH,MAAM,SAAS,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,EAAA,CAAG,OAAO,MAAM,QAAQ;EAC3E,IAAI,MAAM,WAAW,GAAG,OAAO,MAAM,EAAE,CAAC,KAAK;CAC9C,SAAS,GAAG;EACX,KAAK,MAAM,6BAA6B,GAAG;CAC5C;AACD"}
|