@deslop/stash 0.0.0-stage → 0.1.0
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/README.md +75 -2
- package/dist/cli.js +6711 -0
- package/dist/execAsync-CS6-5S6V.mjs +11 -0
- package/dist/getMachineId-bsd-BfsG3k01.mjs +28 -0
- package/dist/getMachineId-darwin-Dt44hGe-.mjs +25 -0
- package/dist/getMachineId-linux-DWTz-mRA.mjs +21 -0
- package/dist/getMachineId-unsupported-D5QQBxpZ.mjs +16 -0
- package/dist/getMachineId-win-DRPdxiMP.mjs +27 -0
- package/dist/rolldown-runtime-B2ow0EdR.mjs +45 -0
- package/dist/server.js +80894 -0
- package/dist/service-D6Z3eq9Z.mjs +68381 -0
- package/package.json +66 -3
- package/src/main.client.tsx +11 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { i as __require, t as __commonJSMin } from "./rolldown-runtime-B2ow0EdR.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
|
|
4
|
+
var require_execAsync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.execAsync = void 0;
|
|
7
|
+
const child_process = __require("child_process");
|
|
8
|
+
exports.execAsync = __require("util").promisify(child_process.exec);
|
|
9
|
+
}));
|
|
10
|
+
//#endregion
|
|
11
|
+
export { require_execAsync as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./rolldown-runtime-B2ow0EdR.mjs";
|
|
3
|
+
import { n as init_esm, t as esm_exports } from "./server.js";
|
|
4
|
+
import { t as require_execAsync } from "./execAsync-CS6-5S6V.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
6
|
+
var require_getMachineId_bsd = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getMachineId = void 0;
|
|
9
|
+
const fs_1 = __require("fs");
|
|
10
|
+
const execAsync_1 = require_execAsync();
|
|
11
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
12
|
+
async function getMachineId() {
|
|
13
|
+
try {
|
|
14
|
+
return (await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" })).trim();
|
|
15
|
+
} catch (e) {
|
|
16
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
return (await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid")).stdout.trim();
|
|
20
|
+
} catch (e) {
|
|
21
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.getMachineId = getMachineId;
|
|
25
|
+
}));
|
|
26
|
+
//#endregion
|
|
27
|
+
export default require_getMachineId_bsd();
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { a as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-B2ow0EdR.mjs";
|
|
3
|
+
import { n as init_esm, t as esm_exports } from "./server.js";
|
|
4
|
+
import { t as require_execAsync } from "./execAsync-CS6-5S6V.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
6
|
+
var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getMachineId = void 0;
|
|
9
|
+
const execAsync_1 = require_execAsync();
|
|
10
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
11
|
+
async function getMachineId() {
|
|
12
|
+
try {
|
|
13
|
+
const idLine = (await (0, execAsync_1.execAsync)("ioreg -rd1 -c \"IOPlatformExpertDevice\"")).stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
|
|
14
|
+
if (!idLine) return;
|
|
15
|
+
const parts = idLine.split("\" = \"");
|
|
16
|
+
if (parts.length === 2) return parts[1].slice(0, -1);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.getMachineId = getMachineId;
|
|
22
|
+
}));
|
|
23
|
+
//#endregion
|
|
24
|
+
export default require_getMachineId_darwin();
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./rolldown-runtime-B2ow0EdR.mjs";
|
|
3
|
+
import { n as init_esm, t as esm_exports } from "./server.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
5
|
+
var require_getMachineId_linux = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const fs_1 = __require("fs");
|
|
9
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
10
|
+
async function getMachineId() {
|
|
11
|
+
for (const path of ["/etc/machine-id", "/var/lib/dbus/machine-id"]) try {
|
|
12
|
+
return (await fs_1.promises.readFile(path, { encoding: "utf8" })).trim();
|
|
13
|
+
} catch (e) {
|
|
14
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.getMachineId = getMachineId;
|
|
18
|
+
}));
|
|
19
|
+
//#endregion
|
|
20
|
+
export default require_getMachineId_linux();
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { a as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-B2ow0EdR.mjs";
|
|
3
|
+
import { n as init_esm, t as esm_exports } from "./server.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
5
|
+
var require_getMachineId_unsupported = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
9
|
+
async function getMachineId() {
|
|
10
|
+
api_1.diag.debug("could not read machine-id: unsupported platform");
|
|
11
|
+
}
|
|
12
|
+
exports.getMachineId = getMachineId;
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_getMachineId_unsupported();
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./rolldown-runtime-B2ow0EdR.mjs";
|
|
3
|
+
import { n as init_esm, t as esm_exports } from "./server.js";
|
|
4
|
+
import { t as require_execAsync } from "./execAsync-CS6-5S6V.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
6
|
+
var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getMachineId = void 0;
|
|
9
|
+
const process = __require("process");
|
|
10
|
+
const execAsync_1 = require_execAsync();
|
|
11
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
12
|
+
async function getMachineId() {
|
|
13
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
14
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
15
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
16
|
+
try {
|
|
17
|
+
const parts = (await (0, execAsync_1.execAsync)(`${command} ${args}`)).stdout.split("REG_SZ");
|
|
18
|
+
if (parts.length === 2) return parts[1].trim();
|
|
19
|
+
} catch (e) {
|
|
20
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.getMachineId = getMachineId;
|
|
24
|
+
}));
|
|
25
|
+
//#endregion
|
|
26
|
+
export default require_getMachineId_win();
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __esmMin = (fn, res, err) => () => {
|
|
11
|
+
if (err) throw err[0];
|
|
12
|
+
try {
|
|
13
|
+
return fn && (res = fn(fn = 0)), res;
|
|
14
|
+
} catch (e) {
|
|
15
|
+
throw err = [e], e;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
19
|
+
var __exportAll = (all, no_symbols) => {
|
|
20
|
+
let target = {};
|
|
21
|
+
for (var name in all) __defProp(target, name, {
|
|
22
|
+
get: all[name],
|
|
23
|
+
enumerable: true
|
|
24
|
+
});
|
|
25
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
26
|
+
return target;
|
|
27
|
+
};
|
|
28
|
+
var __copyProps = (to, from, except, desc) => {
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
30
|
+
key = keys[i];
|
|
31
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
32
|
+
get: ((k) => from[k]).bind(null, key),
|
|
33
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return to;
|
|
37
|
+
};
|
|
38
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
39
|
+
value: mod,
|
|
40
|
+
enumerable: true
|
|
41
|
+
}) : target, mod));
|
|
42
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
43
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
44
|
+
//#endregion
|
|
45
|
+
export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
|