@probelabs/visor 0.1.89 → 0.1.92

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 (133) hide show
  1. package/README.md +68 -2
  2. package/action.yml +1 -1
  3. package/defaults/.visor.yaml +120 -154
  4. package/dist/13.index.js +82 -0
  5. package/dist/159.index.js +38 -0
  6. package/dist/168.index.js +82 -0
  7. package/dist/201.index.js +82 -0
  8. package/dist/262.index.js +48 -0
  9. package/dist/272.index.js +82 -0
  10. package/dist/273.index.js +48 -0
  11. package/dist/320.index.js +38 -0
  12. package/dist/34.index.js +81 -0
  13. package/dist/421.index.js +48 -0
  14. package/dist/437.index.js +82 -0
  15. package/dist/441.index.js +81 -0
  16. package/dist/450.index.js +82 -0
  17. package/dist/54.index.js +81 -0
  18. package/dist/544.index.js +38 -0
  19. package/dist/558.index.js +82 -0
  20. package/dist/715.index.js +38 -0
  21. package/dist/737.index.js +82 -0
  22. package/dist/834.index.js +48 -0
  23. package/dist/85.index.js +82 -0
  24. package/dist/861.index.js +48 -0
  25. package/dist/878.index.js +81 -0
  26. package/dist/940.index.js +38 -0
  27. package/dist/989.index.js +81 -0
  28. package/dist/996.index.js +82 -0
  29. package/dist/ai-review-service.d.ts +11 -1
  30. package/dist/ai-review-service.d.ts.map +1 -1
  31. package/dist/check-execution-engine.d.ts +12 -2
  32. package/dist/check-execution-engine.d.ts.map +1 -1
  33. package/dist/cli-main.d.ts.map +1 -1
  34. package/dist/cli.d.ts.map +1 -1
  35. package/dist/config.d.ts.map +1 -1
  36. package/dist/defaults/.visor.yaml +120 -154
  37. package/dist/failure-condition-evaluator.d.ts +4 -2
  38. package/dist/failure-condition-evaluator.d.ts.map +1 -1
  39. package/dist/generated/config-schema.d.ts +89 -2
  40. package/dist/generated/config-schema.d.ts.map +1 -1
  41. package/dist/generated/config-schema.json +109 -1
  42. package/dist/git-repository-analyzer.d.ts +17 -1
  43. package/dist/git-repository-analyzer.d.ts.map +1 -1
  44. package/dist/github-comments.d.ts.map +1 -1
  45. package/dist/github-reactions.d.ts +36 -0
  46. package/dist/github-reactions.d.ts.map +1 -0
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +174591 -45945
  50. package/dist/liquid-extensions.d.ts +3 -0
  51. package/dist/liquid-extensions.d.ts.map +1 -1
  52. package/dist/logger.d.ts.map +1 -1
  53. package/dist/memory-store.d.ts +129 -0
  54. package/dist/memory-store.d.ts.map +1 -0
  55. package/dist/output/issue-assistant/schema.json +29 -0
  56. package/dist/output/issue-assistant/template.liquid +1 -0
  57. package/dist/output/overview/schema.json +33 -0
  58. package/dist/output/overview/template.liquid +16 -0
  59. package/dist/output-formatters.d.ts +1 -0
  60. package/dist/output-formatters.d.ts.map +1 -1
  61. package/dist/pr-analyzer.d.ts +2 -0
  62. package/dist/pr-analyzer.d.ts.map +1 -1
  63. package/dist/proto/channelz.proto +564 -0
  64. package/dist/providers/check-provider-registry.d.ts.map +1 -1
  65. package/dist/providers/command-check-provider.d.ts +2 -0
  66. package/dist/providers/command-check-provider.d.ts.map +1 -1
  67. package/dist/providers/github-ops-provider.d.ts +18 -0
  68. package/dist/providers/github-ops-provider.d.ts.map +1 -0
  69. package/dist/providers/memory-check-provider.d.ts +56 -0
  70. package/dist/providers/memory-check-provider.d.ts.map +1 -0
  71. package/dist/reviewer.d.ts +2 -0
  72. package/dist/reviewer.d.ts.map +1 -1
  73. package/dist/sdk/check-execution-engine-L73PFZQY.mjs +11 -0
  74. package/dist/sdk/chunk-2U6BIWSY.mjs +748 -0
  75. package/dist/sdk/chunk-2U6BIWSY.mjs.map +1 -0
  76. package/dist/sdk/chunk-KVHVCGY6.mjs +103 -0
  77. package/dist/sdk/chunk-KVHVCGY6.mjs.map +1 -0
  78. package/dist/sdk/{chunk-N34GS4A5.mjs → chunk-LJHRU3WQ.mjs} +4065 -473
  79. package/dist/sdk/chunk-LJHRU3WQ.mjs.map +1 -0
  80. package/dist/sdk/chunk-TWJKAYT6.mjs +1124 -0
  81. package/dist/sdk/chunk-TWJKAYT6.mjs.map +1 -0
  82. package/dist/sdk/liquid-extensions-AFKRYROF.mjs +14 -0
  83. package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs +61 -0
  84. package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs.map +1 -0
  85. package/dist/sdk/sdk.d.mts +48 -2
  86. package/dist/sdk/sdk.d.ts +48 -2
  87. package/dist/sdk/sdk.js +6651 -811
  88. package/dist/sdk/sdk.js.map +1 -1
  89. package/dist/sdk/sdk.mjs +114 -7
  90. package/dist/sdk/sdk.mjs.map +1 -1
  91. package/dist/sdk/tracer-init-O7RLXMJ3.mjs +10 -0
  92. package/dist/sdk/tracer-init-O7RLXMJ3.mjs.map +1 -0
  93. package/dist/session-registry.d.ts +19 -5
  94. package/dist/session-registry.d.ts.map +1 -1
  95. package/dist/telemetry/fallback-ndjson.d.ts +7 -0
  96. package/dist/telemetry/fallback-ndjson.d.ts.map +1 -0
  97. package/dist/telemetry/file-span-exporter.d.ts +17 -0
  98. package/dist/telemetry/file-span-exporter.d.ts.map +1 -0
  99. package/dist/telemetry/metrics.d.ts +13 -0
  100. package/dist/telemetry/metrics.d.ts.map +1 -0
  101. package/dist/telemetry/opentelemetry.d.ts +26 -0
  102. package/dist/telemetry/opentelemetry.d.ts.map +1 -0
  103. package/dist/telemetry/trace-helpers.d.ts +9 -0
  104. package/dist/telemetry/trace-helpers.d.ts.map +1 -0
  105. package/dist/telemetry/trace-report-exporter.d.ts +17 -0
  106. package/dist/telemetry/trace-report-exporter.d.ts.map +1 -0
  107. package/dist/traces/run-2025-10-15T07-21-47-696Z.ndjson +17 -0
  108. package/dist/traces/run-2025-10-15T07-21-58-106Z.ndjson +17 -0
  109. package/dist/traces/run-2025-10-15T07-21-58-693Z.ndjson +17 -0
  110. package/dist/traces/run-2025-10-15T07-21-59-167Z.ndjson +17 -0
  111. package/dist/traces/run-2025-10-15T07-21-59-629Z.ndjson +8 -0
  112. package/dist/types/cli.d.ts +4 -0
  113. package/dist/types/cli.d.ts.map +1 -1
  114. package/dist/types/config.d.ts +56 -2
  115. package/dist/types/config.d.ts.map +1 -1
  116. package/dist/utils/author-permissions.d.ts +74 -0
  117. package/dist/utils/author-permissions.d.ts.map +1 -0
  118. package/dist/utils/head-sha.d.ts +8 -0
  119. package/dist/utils/head-sha.d.ts.map +1 -0
  120. package/dist/utils/mermaid-telemetry.d.ts +3 -0
  121. package/dist/utils/mermaid-telemetry.d.ts.map +1 -0
  122. package/dist/utils/tracer-init.d.ts +12 -0
  123. package/dist/utils/tracer-init.d.ts.map +1 -0
  124. package/dist/utils/ui-helpers.d.ts +3 -0
  125. package/dist/utils/ui-helpers.d.ts.map +1 -0
  126. package/package.json +3 -3
  127. package/dist/sdk/check-execution-engine-D6FPIIKR.mjs +0 -9
  128. package/dist/sdk/chunk-FIL2OGF6.mjs +0 -68
  129. package/dist/sdk/chunk-FIL2OGF6.mjs.map +0 -1
  130. package/dist/sdk/chunk-N34GS4A5.mjs.map +0 -1
  131. package/dist/sdk/liquid-extensions-KDECAJTV.mjs +0 -12
  132. /package/dist/sdk/{check-execution-engine-D6FPIIKR.mjs.map → check-execution-engine-L73PFZQY.mjs.map} +0 -0
  133. /package/dist/sdk/{liquid-extensions-KDECAJTV.mjs.map → liquid-extensions-AFKRYROF.mjs.map} +0 -0
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ exports.id = 168;
3
+ exports.ids = [168];
4
+ exports.modules = {
5
+
6
+ /***/ 14239:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.execAsync = void 0;
27
+ const child_process = __webpack_require__(35317);
28
+ const util = __webpack_require__(39023);
29
+ exports.execAsync = util.promisify(child_process.exec);
30
+ //# sourceMappingURL=execAsync.js.map
31
+
32
+ /***/ }),
33
+
34
+ /***/ 17168:
35
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
+
37
+
38
+ /*
39
+ * Copyright The OpenTelemetry Authors
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
54
+ exports.getMachineId = void 0;
55
+ const execAsync_1 = __webpack_require__(14239);
56
+ const api_1 = __webpack_require__(63914);
57
+ async function getMachineId() {
58
+ try {
59
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
60
+ const idLine = result.stdout
61
+ .split('\n')
62
+ .find(line => line.includes('IOPlatformUUID'));
63
+ if (!idLine) {
64
+ return undefined;
65
+ }
66
+ const parts = idLine.split('" = "');
67
+ if (parts.length === 2) {
68
+ return parts[1].slice(0, -1);
69
+ }
70
+ }
71
+ catch (e) {
72
+ api_1.diag.debug(`error reading machine id: ${e}`);
73
+ }
74
+ return undefined;
75
+ }
76
+ exports.getMachineId = getMachineId;
77
+ //# sourceMappingURL=getMachineId-darwin.js.map
78
+
79
+ /***/ })
80
+
81
+ };
82
+ ;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ exports.id = 201;
3
+ exports.ids = [201];
4
+ exports.modules = {
5
+
6
+ /***/ 42006:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.execAsync = void 0;
27
+ const child_process = __webpack_require__(35317);
28
+ const util = __webpack_require__(39023);
29
+ exports.execAsync = util.promisify(child_process.exec);
30
+ //# sourceMappingURL=execAsync.js.map
31
+
32
+ /***/ }),
33
+
34
+ /***/ 91201:
35
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
+
37
+
38
+ /*
39
+ * Copyright The OpenTelemetry Authors
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
54
+ exports.getMachineId = void 0;
55
+ const execAsync_1 = __webpack_require__(42006);
56
+ const api_1 = __webpack_require__(63914);
57
+ async function getMachineId() {
58
+ try {
59
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
60
+ const idLine = result.stdout
61
+ .split('\n')
62
+ .find(line => line.includes('IOPlatformUUID'));
63
+ if (!idLine) {
64
+ return undefined;
65
+ }
66
+ const parts = idLine.split('" = "');
67
+ if (parts.length === 2) {
68
+ return parts[1].slice(0, -1);
69
+ }
70
+ }
71
+ catch (e) {
72
+ api_1.diag.debug(`error reading machine id: ${e}`);
73
+ }
74
+ return undefined;
75
+ }
76
+ exports.getMachineId = getMachineId;
77
+ //# sourceMappingURL=getMachineId-darwin.js.map
78
+
79
+ /***/ })
80
+
81
+ };
82
+ ;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ exports.id = 262;
3
+ exports.ids = [262];
4
+ exports.modules = {
5
+
6
+ /***/ 96262:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
11
+ exports.getMachineId = void 0;
12
+ /*
13
+ * Copyright The OpenTelemetry Authors
14
+ *
15
+ * Licensed under the Apache License, Version 2.0 (the "License");
16
+ * you may not use this file except in compliance with the License.
17
+ * You may obtain a copy of the License at
18
+ *
19
+ * https://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * Unless required by applicable law or agreed to in writing, software
22
+ * distributed under the License is distributed on an "AS IS" BASIS,
23
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ * See the License for the specific language governing permissions and
25
+ * limitations under the License.
26
+ */
27
+ const fs_1 = __webpack_require__(79896);
28
+ const api_1 = __webpack_require__(63914);
29
+ async function getMachineId() {
30
+ const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
31
+ for (const path of paths) {
32
+ try {
33
+ const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
34
+ return result.trim();
35
+ }
36
+ catch (e) {
37
+ api_1.diag.debug(`error reading machine id: ${e}`);
38
+ }
39
+ }
40
+ return undefined;
41
+ }
42
+ exports.getMachineId = getMachineId;
43
+ //# sourceMappingURL=getMachineId-linux.js.map
44
+
45
+ /***/ })
46
+
47
+ };
48
+ ;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ exports.id = 272;
3
+ exports.ids = [272];
4
+ exports.modules = {
5
+
6
+ /***/ 31223:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.execAsync = void 0;
27
+ const child_process = __webpack_require__(35317);
28
+ const util = __webpack_require__(39023);
29
+ exports.execAsync = util.promisify(child_process.exec);
30
+ //# sourceMappingURL=execAsync.js.map
31
+
32
+ /***/ }),
33
+
34
+ /***/ 37272:
35
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
+
37
+
38
+ /*
39
+ * Copyright The OpenTelemetry Authors
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
54
+ exports.getMachineId = void 0;
55
+ const execAsync_1 = __webpack_require__(31223);
56
+ const api_1 = __webpack_require__(63914);
57
+ async function getMachineId() {
58
+ try {
59
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
60
+ const idLine = result.stdout
61
+ .split('\n')
62
+ .find(line => line.includes('IOPlatformUUID'));
63
+ if (!idLine) {
64
+ return undefined;
65
+ }
66
+ const parts = idLine.split('" = "');
67
+ if (parts.length === 2) {
68
+ return parts[1].slice(0, -1);
69
+ }
70
+ }
71
+ catch (e) {
72
+ api_1.diag.debug(`error reading machine id: ${e}`);
73
+ }
74
+ return undefined;
75
+ }
76
+ exports.getMachineId = getMachineId;
77
+ //# sourceMappingURL=getMachineId-darwin.js.map
78
+
79
+ /***/ })
80
+
81
+ };
82
+ ;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ exports.id = 273;
3
+ exports.ids = [273];
4
+ exports.modules = {
5
+
6
+ /***/ 57273:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
11
+ exports.getMachineId = void 0;
12
+ /*
13
+ * Copyright The OpenTelemetry Authors
14
+ *
15
+ * Licensed under the Apache License, Version 2.0 (the "License");
16
+ * you may not use this file except in compliance with the License.
17
+ * You may obtain a copy of the License at
18
+ *
19
+ * https://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * Unless required by applicable law or agreed to in writing, software
22
+ * distributed under the License is distributed on an "AS IS" BASIS,
23
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ * See the License for the specific language governing permissions and
25
+ * limitations under the License.
26
+ */
27
+ const fs_1 = __webpack_require__(79896);
28
+ const api_1 = __webpack_require__(63914);
29
+ async function getMachineId() {
30
+ const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
31
+ for (const path of paths) {
32
+ try {
33
+ const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
34
+ return result.trim();
35
+ }
36
+ catch (e) {
37
+ api_1.diag.debug(`error reading machine id: ${e}`);
38
+ }
39
+ }
40
+ return undefined;
41
+ }
42
+ exports.getMachineId = getMachineId;
43
+ //# sourceMappingURL=getMachineId-linux.js.map
44
+
45
+ /***/ })
46
+
47
+ };
48
+ ;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ exports.id = 320;
3
+ exports.ids = [320];
4
+ exports.modules = {
5
+
6
+ /***/ 74320:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.getMachineId = void 0;
27
+ const api_1 = __webpack_require__(63914);
28
+ async function getMachineId() {
29
+ api_1.diag.debug('could not read machine-id: unsupported platform');
30
+ return undefined;
31
+ }
32
+ exports.getMachineId = getMachineId;
33
+ //# sourceMappingURL=getMachineId-unsupported.js.map
34
+
35
+ /***/ })
36
+
37
+ };
38
+ ;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ exports.id = 34;
3
+ exports.ids = [34];
4
+ exports.modules = {
5
+
6
+ /***/ 65219:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.execAsync = void 0;
27
+ const child_process = __webpack_require__(35317);
28
+ const util = __webpack_require__(39023);
29
+ exports.execAsync = util.promisify(child_process.exec);
30
+ //# sourceMappingURL=execAsync.js.map
31
+
32
+ /***/ }),
33
+
34
+ /***/ 18034:
35
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
+
37
+
38
+ /*
39
+ * Copyright The OpenTelemetry Authors
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
54
+ exports.getMachineId = void 0;
55
+ const fs_1 = __webpack_require__(79896);
56
+ const execAsync_1 = __webpack_require__(65219);
57
+ const api_1 = __webpack_require__(63914);
58
+ async function getMachineId() {
59
+ try {
60
+ const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
61
+ return result.trim();
62
+ }
63
+ catch (e) {
64
+ api_1.diag.debug(`error reading machine id: ${e}`);
65
+ }
66
+ try {
67
+ const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
68
+ return result.stdout.trim();
69
+ }
70
+ catch (e) {
71
+ api_1.diag.debug(`error reading machine id: ${e}`);
72
+ }
73
+ return undefined;
74
+ }
75
+ exports.getMachineId = getMachineId;
76
+ //# sourceMappingURL=getMachineId-bsd.js.map
77
+
78
+ /***/ })
79
+
80
+ };
81
+ ;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ exports.id = 421;
3
+ exports.ids = [421];
4
+ exports.modules = {
5
+
6
+ /***/ 10421:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
11
+ exports.getMachineId = void 0;
12
+ /*
13
+ * Copyright The OpenTelemetry Authors
14
+ *
15
+ * Licensed under the Apache License, Version 2.0 (the "License");
16
+ * you may not use this file except in compliance with the License.
17
+ * You may obtain a copy of the License at
18
+ *
19
+ * https://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * Unless required by applicable law or agreed to in writing, software
22
+ * distributed under the License is distributed on an "AS IS" BASIS,
23
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ * See the License for the specific language governing permissions and
25
+ * limitations under the License.
26
+ */
27
+ const fs_1 = __webpack_require__(79896);
28
+ const api_1 = __webpack_require__(63914);
29
+ async function getMachineId() {
30
+ const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
31
+ for (const path of paths) {
32
+ try {
33
+ const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
34
+ return result.trim();
35
+ }
36
+ catch (e) {
37
+ api_1.diag.debug(`error reading machine id: ${e}`);
38
+ }
39
+ }
40
+ return undefined;
41
+ }
42
+ exports.getMachineId = getMachineId;
43
+ //# sourceMappingURL=getMachineId-linux.js.map
44
+
45
+ /***/ })
46
+
47
+ };
48
+ ;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ exports.id = 437;
3
+ exports.ids = [437];
4
+ exports.modules = {
5
+
6
+ /***/ 63338:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.execAsync = void 0;
27
+ const child_process = __webpack_require__(35317);
28
+ const util = __webpack_require__(39023);
29
+ exports.execAsync = util.promisify(child_process.exec);
30
+ //# sourceMappingURL=execAsync.js.map
31
+
32
+ /***/ }),
33
+
34
+ /***/ 28437:
35
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
+
37
+
38
+ /*
39
+ * Copyright The OpenTelemetry Authors
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
54
+ exports.getMachineId = void 0;
55
+ const execAsync_1 = __webpack_require__(63338);
56
+ const api_1 = __webpack_require__(63914);
57
+ async function getMachineId() {
58
+ try {
59
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
60
+ const idLine = result.stdout
61
+ .split('\n')
62
+ .find(line => line.includes('IOPlatformUUID'));
63
+ if (!idLine) {
64
+ return undefined;
65
+ }
66
+ const parts = idLine.split('" = "');
67
+ if (parts.length === 2) {
68
+ return parts[1].slice(0, -1);
69
+ }
70
+ }
71
+ catch (e) {
72
+ api_1.diag.debug(`error reading machine id: ${e}`);
73
+ }
74
+ return undefined;
75
+ }
76
+ exports.getMachineId = getMachineId;
77
+ //# sourceMappingURL=getMachineId-darwin.js.map
78
+
79
+ /***/ })
80
+
81
+ };
82
+ ;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ exports.id = 441;
3
+ exports.ids = [441];
4
+ exports.modules = {
5
+
6
+ /***/ 42006:
7
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
+
9
+
10
+ /*
11
+ * Copyright The OpenTelemetry Authors
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * https://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
26
+ exports.execAsync = void 0;
27
+ const child_process = __webpack_require__(35317);
28
+ const util = __webpack_require__(39023);
29
+ exports.execAsync = util.promisify(child_process.exec);
30
+ //# sourceMappingURL=execAsync.js.map
31
+
32
+ /***/ }),
33
+
34
+ /***/ 83441:
35
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
36
+
37
+
38
+ /*
39
+ * Copyright The OpenTelemetry Authors
40
+ *
41
+ * Licensed under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://www.apache.org/licenses/LICENSE-2.0
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" BASIS,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
54
+ exports.getMachineId = void 0;
55
+ const fs_1 = __webpack_require__(79896);
56
+ const execAsync_1 = __webpack_require__(42006);
57
+ const api_1 = __webpack_require__(63914);
58
+ async function getMachineId() {
59
+ try {
60
+ const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
61
+ return result.trim();
62
+ }
63
+ catch (e) {
64
+ api_1.diag.debug(`error reading machine id: ${e}`);
65
+ }
66
+ try {
67
+ const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
68
+ return result.stdout.trim();
69
+ }
70
+ catch (e) {
71
+ api_1.diag.debug(`error reading machine id: ${e}`);
72
+ }
73
+ return undefined;
74
+ }
75
+ exports.getMachineId = getMachineId;
76
+ //# sourceMappingURL=getMachineId-bsd.js.map
77
+
78
+ /***/ })
79
+
80
+ };
81
+ ;