@mastra/auth-supabase 0.0.0-fix-generate-title-20250616171351

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.
@@ -0,0 +1,7 @@
1
+ import * as child_process from 'child_process';
2
+ import * as util from 'util';
3
+
4
+ // ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js
5
+ var execAsync = util.promisify(child_process.exec);
6
+
7
+ export { execAsync };
@@ -0,0 +1,21 @@
1
+ import { execAsync } from './chunk-N62AETLJ.js';
2
+ import { diag } from './chunk-JLXWUSDO.js';
3
+ import { promises } from 'fs';
4
+
5
+ async function getMachineId() {
6
+ try {
7
+ const result = await promises.readFile("/etc/hostid", { encoding: "utf8" });
8
+ return result.trim();
9
+ } catch (e) {
10
+ diag.debug(`error reading machine id: ${e}`);
11
+ }
12
+ try {
13
+ const result = await execAsync("kenv -q smbios.system.uuid");
14
+ return result.stdout.trim();
15
+ } catch (e) {
16
+ diag.debug(`error reading machine id: ${e}`);
17
+ }
18
+ return void 0;
19
+ }
20
+
21
+ export { getMachineId };
@@ -0,0 +1,22 @@
1
+ import { execAsync } from './chunk-N62AETLJ.js';
2
+ import { diag } from './chunk-JLXWUSDO.js';
3
+
4
+ // ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js
5
+ async function getMachineId() {
6
+ try {
7
+ const result = await execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
8
+ const idLine = result.stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
9
+ if (!idLine) {
10
+ return void 0;
11
+ }
12
+ const parts = idLine.split('" = "');
13
+ if (parts.length === 2) {
14
+ return parts[1].slice(0, -1);
15
+ }
16
+ } catch (e) {
17
+ diag.debug(`error reading machine id: ${e}`);
18
+ }
19
+ return void 0;
20
+ }
21
+
22
+ export { getMachineId };
@@ -0,0 +1,17 @@
1
+ import { diag } from './chunk-JLXWUSDO.js';
2
+ import { promises } from 'fs';
3
+
4
+ async function getMachineId() {
5
+ const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
6
+ for (const path of paths) {
7
+ try {
8
+ const result = await promises.readFile(path, { encoding: "utf8" });
9
+ return result.trim();
10
+ } catch (e) {
11
+ diag.debug(`error reading machine id: ${e}`);
12
+ }
13
+ }
14
+ return void 0;
15
+ }
16
+
17
+ export { getMachineId };
@@ -0,0 +1,9 @@
1
+ import { diag } from './chunk-JLXWUSDO.js';
2
+
3
+ // ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js
4
+ async function getMachineId() {
5
+ diag.debug("could not read machine-id: unsupported platform");
6
+ return void 0;
7
+ }
8
+
9
+ export { getMachineId };
@@ -0,0 +1,23 @@
1
+ import { execAsync } from './chunk-N62AETLJ.js';
2
+ import { diag } from './chunk-JLXWUSDO.js';
3
+ import * as process from 'process';
4
+
5
+ async function getMachineId() {
6
+ const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
7
+ let command = "%windir%\\System32\\REG.exe";
8
+ if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) {
9
+ command = "%windir%\\sysnative\\cmd.exe /c " + command;
10
+ }
11
+ try {
12
+ const result = await execAsync(`${command} ${args}`);
13
+ const parts = result.stdout.split("REG_SZ");
14
+ if (parts.length === 2) {
15
+ return parts[1].trim();
16
+ }
17
+ } catch (e) {
18
+ diag.debug(`error reading machine id: ${e}`);
19
+ }
20
+ return void 0;
21
+ }
22
+
23
+ export { getMachineId };