@skillrecordings/cli 0.1.0 → 0.2.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.
Files changed (136) hide show
  1. package/bin/skill.mjs +21 -0
  2. package/dist/chunk-2NCCVTEE.js +22342 -0
  3. package/dist/chunk-2NCCVTEE.js.map +1 -0
  4. package/dist/chunk-3E3GYSZR.js +7071 -0
  5. package/dist/chunk-3E3GYSZR.js.map +1 -0
  6. package/dist/chunk-F4EM72IH.js +86 -0
  7. package/dist/chunk-F4EM72IH.js.map +1 -0
  8. package/dist/chunk-FGP7KUQW.js +432 -0
  9. package/dist/chunk-FGP7KUQW.js.map +1 -0
  10. package/dist/chunk-H3D6VCME.js +55 -0
  11. package/dist/chunk-H3D6VCME.js.map +1 -0
  12. package/dist/chunk-HK3PEWFD.js +208 -0
  13. package/dist/chunk-HK3PEWFD.js.map +1 -0
  14. package/dist/chunk-KEV3QKXP.js +4495 -0
  15. package/dist/chunk-KEV3QKXP.js.map +1 -0
  16. package/dist/chunk-MG37YDAK.js +882 -0
  17. package/dist/chunk-MG37YDAK.js.map +1 -0
  18. package/dist/chunk-MLNDSBZ4.js +482 -0
  19. package/dist/chunk-MLNDSBZ4.js.map +1 -0
  20. package/dist/chunk-N2WIV2JV.js +22 -0
  21. package/dist/chunk-N2WIV2JV.js.map +1 -0
  22. package/dist/chunk-PWWRCN5W.js +2067 -0
  23. package/dist/chunk-PWWRCN5W.js.map +1 -0
  24. package/dist/chunk-SKHBM3XP.js +7746 -0
  25. package/dist/chunk-SKHBM3XP.js.map +1 -0
  26. package/dist/chunk-WFANXVQG.js +64 -0
  27. package/dist/chunk-WFANXVQG.js.map +1 -0
  28. package/dist/chunk-WYKL32C3.js +275 -0
  29. package/dist/chunk-WYKL32C3.js.map +1 -0
  30. package/dist/chunk-ZNF7XD2S.js +134 -0
  31. package/dist/chunk-ZNF7XD2S.js.map +1 -0
  32. package/dist/config-AUAIYDSI.js +20 -0
  33. package/dist/config-AUAIYDSI.js.map +1 -0
  34. package/dist/fileFromPath-XN7LXIBI.js +134 -0
  35. package/dist/fileFromPath-XN7LXIBI.js.map +1 -0
  36. package/dist/getMachineId-bsd-KW2E7VK3.js +42 -0
  37. package/dist/getMachineId-bsd-KW2E7VK3.js.map +1 -0
  38. package/dist/getMachineId-darwin-ROXJUJX5.js +42 -0
  39. package/dist/getMachineId-darwin-ROXJUJX5.js.map +1 -0
  40. package/dist/getMachineId-linux-KVZEHQSU.js +34 -0
  41. package/dist/getMachineId-linux-KVZEHQSU.js.map +1 -0
  42. package/dist/getMachineId-unsupported-PPRILPPA.js +25 -0
  43. package/dist/getMachineId-unsupported-PPRILPPA.js.map +1 -0
  44. package/dist/getMachineId-win-IIF36LEJ.js +44 -0
  45. package/dist/getMachineId-win-IIF36LEJ.js.map +1 -0
  46. package/dist/index.js +112703 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/lib-R6DEEJCP.js +7623 -0
  49. package/dist/lib-R6DEEJCP.js.map +1 -0
  50. package/dist/pipeline-IAVVAKTU.js +120 -0
  51. package/dist/pipeline-IAVVAKTU.js.map +1 -0
  52. package/dist/query-NTP5NVXN.js +25 -0
  53. package/dist/query-NTP5NVXN.js.map +1 -0
  54. package/dist/routing-BAEPFB7V.js +390 -0
  55. package/dist/routing-BAEPFB7V.js.map +1 -0
  56. package/dist/stripe-lookup-charge-EPRUMZDL.js +56 -0
  57. package/dist/stripe-lookup-charge-EPRUMZDL.js.map +1 -0
  58. package/dist/stripe-payment-history-SJPKA63N.js +67 -0
  59. package/dist/stripe-payment-history-SJPKA63N.js.map +1 -0
  60. package/dist/stripe-subscription-status-L4Z65GB3.js +58 -0
  61. package/dist/stripe-subscription-status-L4Z65GB3.js.map +1 -0
  62. package/dist/stripe-verify-refund-FZDKCIUQ.js +54 -0
  63. package/dist/stripe-verify-refund-FZDKCIUQ.js.map +1 -0
  64. package/dist/support-memory-WSG7SDKG.js +10 -0
  65. package/dist/support-memory-WSG7SDKG.js.map +1 -0
  66. package/package.json +10 -7
  67. package/.env.encrypted +0 -0
  68. package/CHANGELOG.md +0 -35
  69. package/data/tt-archive-dataset.json +0 -1
  70. package/data/validate-test-dataset.json +0 -97
  71. package/docs/CLI-AUTH.md +0 -504
  72. package/preload.ts +0 -18
  73. package/src/__tests__/init.test.ts +0 -74
  74. package/src/alignment-test.ts +0 -64
  75. package/src/check-apps.ts +0 -16
  76. package/src/commands/auth/decrypt.ts +0 -123
  77. package/src/commands/auth/encrypt.ts +0 -81
  78. package/src/commands/auth/index.ts +0 -50
  79. package/src/commands/auth/keygen.ts +0 -41
  80. package/src/commands/auth/status.ts +0 -164
  81. package/src/commands/axiom/forensic.ts +0 -868
  82. package/src/commands/axiom/index.ts +0 -697
  83. package/src/commands/build-dataset.ts +0 -311
  84. package/src/commands/db-status.ts +0 -47
  85. package/src/commands/deploys.ts +0 -219
  86. package/src/commands/eval-local/compare.ts +0 -171
  87. package/src/commands/eval-local/health.ts +0 -212
  88. package/src/commands/eval-local/index.ts +0 -76
  89. package/src/commands/eval-local/real-tools.ts +0 -416
  90. package/src/commands/eval-local/run.ts +0 -1168
  91. package/src/commands/eval-local/score-production.ts +0 -256
  92. package/src/commands/eval-local/seed.ts +0 -276
  93. package/src/commands/eval-pipeline/index.ts +0 -53
  94. package/src/commands/eval-pipeline/real-tools.ts +0 -492
  95. package/src/commands/eval-pipeline/run.ts +0 -1316
  96. package/src/commands/eval-pipeline/seed.ts +0 -395
  97. package/src/commands/eval-prompt.ts +0 -496
  98. package/src/commands/eval.test.ts +0 -253
  99. package/src/commands/eval.ts +0 -108
  100. package/src/commands/faq-classify.ts +0 -460
  101. package/src/commands/faq-cluster.ts +0 -135
  102. package/src/commands/faq-extract.ts +0 -249
  103. package/src/commands/faq-mine.ts +0 -432
  104. package/src/commands/faq-review.ts +0 -426
  105. package/src/commands/front/index.ts +0 -351
  106. package/src/commands/front/pull-conversations.ts +0 -275
  107. package/src/commands/front/tags.ts +0 -825
  108. package/src/commands/front-cache.ts +0 -1277
  109. package/src/commands/front-stats.ts +0 -75
  110. package/src/commands/health.test.ts +0 -82
  111. package/src/commands/health.ts +0 -362
  112. package/src/commands/init.test.ts +0 -89
  113. package/src/commands/init.ts +0 -106
  114. package/src/commands/inngest/client.ts +0 -294
  115. package/src/commands/inngest/events.ts +0 -296
  116. package/src/commands/inngest/investigate.ts +0 -382
  117. package/src/commands/inngest/runs.ts +0 -149
  118. package/src/commands/inngest/signal.ts +0 -143
  119. package/src/commands/kb-sync.ts +0 -498
  120. package/src/commands/memory/find.ts +0 -135
  121. package/src/commands/memory/get.ts +0 -87
  122. package/src/commands/memory/index.ts +0 -97
  123. package/src/commands/memory/stats.ts +0 -163
  124. package/src/commands/memory/store.ts +0 -49
  125. package/src/commands/memory/vote.ts +0 -159
  126. package/src/commands/pipeline.ts +0 -127
  127. package/src/commands/responses.ts +0 -856
  128. package/src/commands/tools.ts +0 -293
  129. package/src/commands/wizard.ts +0 -319
  130. package/src/index.ts +0 -172
  131. package/src/lib/crypto.ts +0 -56
  132. package/src/lib/env-loader.ts +0 -206
  133. package/src/lib/onepassword.ts +0 -137
  134. package/src/test-agent-local.ts +0 -115
  135. package/tsconfig.json +0 -11
  136. package/vitest.config.ts +0 -10
@@ -0,0 +1,134 @@
1
+ import {
2
+ File,
3
+ isFile
4
+ } from "./chunk-PWWRCN5W.js";
5
+ import {
6
+ __commonJS,
7
+ __require,
8
+ __toESM,
9
+ init_esm_shims
10
+ } from "./chunk-WFANXVQG.js";
11
+
12
+ // ../../node_modules/.bun/node-domexception@1.0.0/node_modules/node-domexception/index.js
13
+ var require_node_domexception = __commonJS({
14
+ "../../node_modules/.bun/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports, module) {
15
+ "use strict";
16
+ init_esm_shims();
17
+ if (!globalThis.DOMException) {
18
+ try {
19
+ const { MessageChannel } = __require("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
20
+ port.postMessage(ab, [ab, ab]);
21
+ } catch (err) {
22
+ err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
23
+ }
24
+ }
25
+ module.exports = globalThis.DOMException;
26
+ }
27
+ });
28
+
29
+ // ../../node_modules/.bun/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/fileFromPath.js
30
+ init_esm_shims();
31
+ var import_node_domexception = __toESM(require_node_domexception(), 1);
32
+ import { statSync, createReadStream, promises as fs } from "fs";
33
+ import { basename } from "path";
34
+
35
+ // ../../node_modules/.bun/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/isPlainObject.js
36
+ init_esm_shims();
37
+ var getType = (value) => Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
38
+ function isPlainObject(value) {
39
+ if (getType(value) !== "object") {
40
+ return false;
41
+ }
42
+ const pp = Object.getPrototypeOf(value);
43
+ if (pp === null || pp === void 0) {
44
+ return true;
45
+ }
46
+ const Ctor = pp.constructor && pp.constructor.toString();
47
+ return Ctor === Object.toString();
48
+ }
49
+ var isPlainObject_default = isPlainObject;
50
+
51
+ // ../../node_modules/.bun/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/fileFromPath.js
52
+ var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
53
+ if (kind === "m") throw new TypeError("Private method is not writable");
54
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
55
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
56
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
57
+ };
58
+ var __classPrivateFieldGet = function(receiver, state, kind, f) {
59
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
60
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
61
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
62
+ };
63
+ var _FileFromPath_path;
64
+ var _FileFromPath_start;
65
+ var MESSAGE = "The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.";
66
+ var FileFromPath = class _FileFromPath {
67
+ constructor(input) {
68
+ _FileFromPath_path.set(this, void 0);
69
+ _FileFromPath_start.set(this, void 0);
70
+ __classPrivateFieldSet(this, _FileFromPath_path, input.path, "f");
71
+ __classPrivateFieldSet(this, _FileFromPath_start, input.start || 0, "f");
72
+ this.name = basename(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
73
+ this.size = input.size;
74
+ this.lastModified = input.lastModified;
75
+ }
76
+ slice(start, end) {
77
+ return new _FileFromPath({
78
+ path: __classPrivateFieldGet(this, _FileFromPath_path, "f"),
79
+ lastModified: this.lastModified,
80
+ size: end - start,
81
+ start
82
+ });
83
+ }
84
+ async *stream() {
85
+ const { mtimeMs } = await fs.stat(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
86
+ if (mtimeMs > this.lastModified) {
87
+ throw new import_node_domexception.default(MESSAGE, "NotReadableError");
88
+ }
89
+ if (this.size) {
90
+ yield* createReadStream(__classPrivateFieldGet(this, _FileFromPath_path, "f"), {
91
+ start: __classPrivateFieldGet(this, _FileFromPath_start, "f"),
92
+ end: __classPrivateFieldGet(this, _FileFromPath_start, "f") + this.size - 1
93
+ });
94
+ }
95
+ }
96
+ get [(_FileFromPath_path = /* @__PURE__ */ new WeakMap(), _FileFromPath_start = /* @__PURE__ */ new WeakMap(), Symbol.toStringTag)]() {
97
+ return "File";
98
+ }
99
+ };
100
+ function createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, options = {}) {
101
+ let filename;
102
+ if (isPlainObject_default(filenameOrOptions)) {
103
+ [options, filename] = [filenameOrOptions, void 0];
104
+ } else {
105
+ filename = filenameOrOptions;
106
+ }
107
+ const file = new FileFromPath({ path, size, lastModified: mtimeMs });
108
+ if (!filename) {
109
+ filename = file.name;
110
+ }
111
+ return new File([file], filename, {
112
+ ...options,
113
+ lastModified: file.lastModified
114
+ });
115
+ }
116
+ function fileFromPathSync(path, filenameOrOptions, options = {}) {
117
+ const stats = statSync(path);
118
+ return createFileFromPath(path, stats, filenameOrOptions, options);
119
+ }
120
+ async function fileFromPath(path, filenameOrOptions, options) {
121
+ const stats = await fs.stat(path);
122
+ return createFileFromPath(path, stats, filenameOrOptions, options);
123
+ }
124
+ export {
125
+ fileFromPath,
126
+ fileFromPathSync,
127
+ isFile
128
+ };
129
+ /*! Bundled license information:
130
+
131
+ node-domexception/index.js:
132
+ (*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
133
+ */
134
+ //# sourceMappingURL=fileFromPath-XN7LXIBI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.bun/node-domexception@1.0.0/node_modules/node-domexception/index.js","../../../node_modules/.bun/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/fileFromPath.js","../../../node_modules/.bun/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/isPlainObject.js"],"sourcesContent":["/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */\n\nif (!globalThis.DOMException) {\n try {\n const { MessageChannel } = require('worker_threads'),\n port = new MessageChannel().port1,\n ab = new ArrayBuffer()\n port.postMessage(ab, [ab, ab])\n } catch (err) {\n err.constructor.name === 'DOMException' && (\n globalThis.DOMException = err.constructor\n )\n }\n}\n\nmodule.exports = globalThis.DOMException\n","var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n};\nvar __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar _FileFromPath_path, _FileFromPath_start;\nimport { statSync, createReadStream, promises as fs } from \"fs\";\nimport { basename } from \"path\";\nimport DOMException from \"node-domexception\";\nimport { File } from \"./File.js\";\nimport isPlainObject from \"./isPlainObject.js\";\nexport * from \"./isFile.js\";\nconst MESSAGE = \"The requested file could not be read, \"\n + \"typically due to permission problems that have occurred after a reference \"\n + \"to a file was acquired.\";\nclass FileFromPath {\n constructor(input) {\n _FileFromPath_path.set(this, void 0);\n _FileFromPath_start.set(this, void 0);\n __classPrivateFieldSet(this, _FileFromPath_path, input.path, \"f\");\n __classPrivateFieldSet(this, _FileFromPath_start, input.start || 0, \"f\");\n this.name = basename(__classPrivateFieldGet(this, _FileFromPath_path, \"f\"));\n this.size = input.size;\n this.lastModified = input.lastModified;\n }\n slice(start, end) {\n return new FileFromPath({\n path: __classPrivateFieldGet(this, _FileFromPath_path, \"f\"),\n lastModified: this.lastModified,\n size: end - start,\n start\n });\n }\n async *stream() {\n const { mtimeMs } = await fs.stat(__classPrivateFieldGet(this, _FileFromPath_path, \"f\"));\n if (mtimeMs > this.lastModified) {\n throw new DOMException(MESSAGE, \"NotReadableError\");\n }\n if (this.size) {\n yield* createReadStream(__classPrivateFieldGet(this, _FileFromPath_path, \"f\"), {\n start: __classPrivateFieldGet(this, _FileFromPath_start, \"f\"),\n end: __classPrivateFieldGet(this, _FileFromPath_start, \"f\") + this.size - 1\n });\n }\n }\n get [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new WeakMap(), Symbol.toStringTag)]() {\n return \"File\";\n }\n}\nfunction createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, options = {}) {\n let filename;\n if (isPlainObject(filenameOrOptions)) {\n [options, filename] = [filenameOrOptions, undefined];\n }\n else {\n filename = filenameOrOptions;\n }\n const file = new FileFromPath({ path, size, lastModified: mtimeMs });\n if (!filename) {\n filename = file.name;\n }\n return new File([file], filename, {\n ...options, lastModified: file.lastModified\n });\n}\nexport function fileFromPathSync(path, filenameOrOptions, options = {}) {\n const stats = statSync(path);\n return createFileFromPath(path, stats, filenameOrOptions, options);\n}\nexport async function fileFromPath(path, filenameOrOptions, options) {\n const stats = await fs.stat(path);\n return createFileFromPath(path, stats, filenameOrOptions, options);\n}\n","const getType = (value) => (Object.prototype.toString.call(value).slice(8, -1).toLowerCase());\nfunction isPlainObject(value) {\n if (getType(value) !== \"object\") {\n return false;\n }\n const pp = Object.getPrototypeOf(value);\n if (pp === null || pp === undefined) {\n return true;\n }\n const Ctor = pp.constructor && pp.constructor.toString();\n return Ctor === Object.toString();\n}\nexport default isPlainObject;\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAEA,QAAI,CAAC,WAAW,cAAc;AAC5B,UAAI;AACF,cAAM,EAAE,eAAe,IAAI,UAAQ,gBAAgB,GACnD,OAAO,IAAI,eAAe,EAAE,OAC5B,KAAK,IAAI,YAAY;AACrB,aAAK,YAAY,IAAI,CAAC,IAAI,EAAE,CAAC;AAAA,MAC/B,SAAS,KAAK;AACZ,YAAI,YAAY,SAAS,mBACvB,WAAW,eAAe,IAAI;AAAA,MAElC;AAAA,IACF;AAEA,WAAO,UAAU,WAAW;AAAA;AAAA;;;ACf5B;AAcA,+BAAyB;AAFzB,SAAS,UAAU,kBAAkB,YAAY,UAAU;AAC3D,SAAS,gBAAgB;;;ACbzB;AAAA,IAAM,UAAU,CAAC,UAAW,OAAO,UAAU,SAAS,KAAK,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE,YAAY;AAC3F,SAAS,cAAc,OAAO;AAC1B,MAAI,QAAQ,KAAK,MAAM,UAAU;AAC7B,WAAO;AAAA,EACX;AACA,QAAM,KAAK,OAAO,eAAe,KAAK;AACtC,MAAI,OAAO,QAAQ,OAAO,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M,mBAAmB,UAAU,CAAC,GAAG;AACpE,QAAM,QAAQ,SAAS,IAAI;AAC3B,SAAO,mBAAmB,MAAM,OAAO,mBAAmB,OAAO;AACrE;AACA,eAAsB,aAAa,MAAM,mBAAmB,SAAS;AACjE,QAAM,QAAQ,MAAM,GAAG,KAAK,IAAI;AAChC,SAAO,mBAAmB,MAAM,OAAO,mBAAmB,OAAO;AACrE;","names":["DOMException"]}
@@ -0,0 +1,42 @@
1
+ import {
2
+ execAsync,
3
+ init_execAsync
4
+ } from "./chunk-N2WIV2JV.js";
5
+ import {
6
+ diag,
7
+ init_esm
8
+ } from "./chunk-FGP7KUQW.js";
9
+ import {
10
+ __esm,
11
+ init_esm_shims
12
+ } from "./chunk-WFANXVQG.js";
13
+
14
+ // ../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js
15
+ import { promises as fs } from "fs";
16
+ async function getMachineId() {
17
+ try {
18
+ const result = await fs.readFile("/etc/hostid", { encoding: "utf8" });
19
+ return result.trim();
20
+ } catch (e) {
21
+ diag.debug(`error reading machine id: ${e}`);
22
+ }
23
+ try {
24
+ const result = await execAsync("kenv -q smbios.system.uuid");
25
+ return result.stdout.trim();
26
+ } catch (e) {
27
+ diag.debug(`error reading machine id: ${e}`);
28
+ }
29
+ return void 0;
30
+ }
31
+ var init_getMachineId_bsd = __esm({
32
+ "../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js"() {
33
+ init_esm_shims();
34
+ init_execAsync();
35
+ init_esm();
36
+ }
37
+ });
38
+ init_getMachineId_bsd();
39
+ export {
40
+ getMachineId
41
+ };
42
+ //# sourceMappingURL=getMachineId-bsd-KW2E7VK3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-bsd.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\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":";;;;;;;;;;;;;;AAgBA,SAAS,YAAY,UAAU;AAI/B,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;AApCA;;;AAiBA;AACA;;;","names":[]}
@@ -0,0 +1,42 @@
1
+ import {
2
+ execAsync,
3
+ init_execAsync
4
+ } from "./chunk-N2WIV2JV.js";
5
+ import {
6
+ diag,
7
+ init_esm
8
+ } from "./chunk-FGP7KUQW.js";
9
+ import {
10
+ __esm,
11
+ init_esm_shims
12
+ } from "./chunk-WFANXVQG.js";
13
+
14
+ // ../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js
15
+ async function getMachineId() {
16
+ try {
17
+ const result = await execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
18
+ const idLine = result.stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
19
+ if (!idLine) {
20
+ return void 0;
21
+ }
22
+ const parts = idLine.split('" = "');
23
+ if (parts.length === 2) {
24
+ return parts[1].slice(0, -1);
25
+ }
26
+ } catch (e) {
27
+ diag.debug(`error reading machine id: ${e}`);
28
+ }
29
+ return void 0;
30
+ }
31
+ var init_getMachineId_darwin = __esm({
32
+ "../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js"() {
33
+ init_esm_shims();
34
+ init_execAsync();
35
+ init_esm();
36
+ }
37
+ });
38
+ init_getMachineId_darwin();
39
+ export {
40
+ getMachineId
41
+ };
42
+ //# sourceMappingURL=getMachineId-darwin-ROXJUJX5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-darwin.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\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":";;;;;;;;;;;;;;AAmBA,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;AAxCA;;;AAgBA;AACA;;;","names":[]}
@@ -0,0 +1,34 @@
1
+ import {
2
+ diag,
3
+ init_esm
4
+ } from "./chunk-FGP7KUQW.js";
5
+ import {
6
+ __esm,
7
+ init_esm_shims
8
+ } from "./chunk-WFANXVQG.js";
9
+
10
+ // ../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js
11
+ import { promises as fs } from "fs";
12
+ async function getMachineId() {
13
+ const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
14
+ for (const path of paths) {
15
+ try {
16
+ const result = await fs.readFile(path, { encoding: "utf8" });
17
+ return result.trim();
18
+ } catch (e) {
19
+ diag.debug(`error reading machine id: ${e}`);
20
+ }
21
+ }
22
+ return void 0;
23
+ }
24
+ var init_getMachineId_linux = __esm({
25
+ "../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js"() {
26
+ init_esm_shims();
27
+ init_esm();
28
+ }
29
+ });
30
+ init_getMachineId_linux();
31
+ export {
32
+ getMachineId
33
+ };
34
+ //# sourceMappingURL=getMachineId-linux-KVZEHQSU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-linux.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\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":";;;;;;;;;;AAeA,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;AA/BA;;;AAgBA;;;","names":[]}
@@ -0,0 +1,25 @@
1
+ import {
2
+ diag,
3
+ init_esm
4
+ } from "./chunk-FGP7KUQW.js";
5
+ import {
6
+ __esm,
7
+ init_esm_shims
8
+ } from "./chunk-WFANXVQG.js";
9
+
10
+ // ../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js
11
+ async function getMachineId() {
12
+ diag.debug("could not read machine-id: unsupported platform");
13
+ return void 0;
14
+ }
15
+ var init_getMachineId_unsupported = __esm({
16
+ "../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js"() {
17
+ init_esm_shims();
18
+ init_esm();
19
+ }
20
+ });
21
+ init_getMachineId_unsupported();
22
+ export {
23
+ getMachineId
24
+ };
25
+ //# sourceMappingURL=getMachineId-unsupported-PPRILPPA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-unsupported.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\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":";;;;;;;;;;AAkBA,eAAsB,eAAY;AAChC,OAAK,MAAM,iDAAiD;AAC5D,SAAO;AACT;AArBA;;;AAgBA;;;","names":[]}
@@ -0,0 +1,44 @@
1
+ import {
2
+ execAsync,
3
+ init_execAsync
4
+ } from "./chunk-N2WIV2JV.js";
5
+ import {
6
+ diag,
7
+ init_esm
8
+ } from "./chunk-FGP7KUQW.js";
9
+ import {
10
+ __esm,
11
+ init_esm_shims
12
+ } from "./chunk-WFANXVQG.js";
13
+
14
+ // ../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js
15
+ import * as process from "process";
16
+ async function getMachineId() {
17
+ const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
18
+ let command = "%windir%\\System32\\REG.exe";
19
+ if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) {
20
+ command = "%windir%\\sysnative\\cmd.exe /c " + command;
21
+ }
22
+ try {
23
+ const result = await execAsync(`${command} ${args}`);
24
+ const parts = result.stdout.split("REG_SZ");
25
+ if (parts.length === 2) {
26
+ return parts[1].trim();
27
+ }
28
+ } catch (e) {
29
+ diag.debug(`error reading machine id: ${e}`);
30
+ }
31
+ return void 0;
32
+ }
33
+ var init_getMachineId_win = __esm({
34
+ "../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js"() {
35
+ init_esm_shims();
36
+ init_execAsync();
37
+ init_esm();
38
+ }
39
+ });
40
+ init_getMachineId_win();
41
+ export {
42
+ getMachineId
43
+ };
44
+ //# sourceMappingURL=getMachineId-win-IIF36LEJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.bun/@opentelemetry+resources@2.5.0+460773ef8ff1e07c/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-win.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\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":";;;;;;;;;;;;;;AAgBA,YAAY,aAAa;AAIzB,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;AAvCA;;;AAiBA;AACA;;;","names":[]}