@nrwl/nx-cloud 15.3.5 → 16.0.0-beta.3

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 (186) hide show
  1. package/README.md +1 -1
  2. package/generators.json +3 -3
  3. package/index.js +1 -5
  4. package/package.json +3 -14
  5. package/project.json +3 -28
  6. package/bin/nx-cloud.d.ts +0 -2
  7. package/bin/nx-cloud.js +0 -50
  8. package/bin/nx-cloud.js.map +0 -1
  9. package/index.d.ts +0 -2
  10. package/index.js.map +0 -1
  11. package/lib/core/api/error-reporter.api.d.ts +0 -6
  12. package/lib/core/api/error-reporter.api.js +0 -1
  13. package/lib/core/api/error-reporter.api.js.map +0 -1
  14. package/lib/core/api/run-group.api.d.ts +0 -7
  15. package/lib/core/api/run-group.api.js +0 -1
  16. package/lib/core/api/run-group.api.js.map +0 -1
  17. package/lib/core/commands/clean-up-agents.d.ts +0 -1
  18. package/lib/core/commands/clean-up-agents.js +0 -34
  19. package/lib/core/commands/clean-up-agents.js.map +0 -1
  20. package/lib/core/commands/record-output.d.ts +0 -1
  21. package/lib/core/commands/record-output.js +0 -186
  22. package/lib/core/commands/record-output.js.map +0 -1
  23. package/lib/core/commands/start-ci-run.d.ts +0 -1
  24. package/lib/core/commands/start-ci-run.js +0 -60
  25. package/lib/core/commands/start-ci-run.js.map +0 -1
  26. package/lib/core/commands/stop-all-agents.d.ts +0 -1
  27. package/lib/core/commands/stop-all-agents.js +0 -40
  28. package/lib/core/commands/stop-all-agents.js.map +0 -1
  29. package/lib/core/commands/upload-and-show-run-details.d.ts +0 -1
  30. package/lib/core/commands/upload-and-show-run-details.js +0 -66
  31. package/lib/core/commands/upload-and-show-run-details.js.map +0 -1
  32. package/lib/core/error/print-cacheable-targets-error.d.ts +0 -1
  33. package/lib/core/error/print-cacheable-targets-error.js +0 -15
  34. package/lib/core/error/print-cacheable-targets-error.js.map +0 -1
  35. package/lib/core/error/print-invalid-runner-error.d.ts +0 -1
  36. package/lib/core/error/print-invalid-runner-error.js +0 -17
  37. package/lib/core/error/print-invalid-runner-error.js.map +0 -1
  38. package/lib/core/error/print-run-group-error.d.ts +0 -2
  39. package/lib/core/error/print-run-group-error.js +0 -20
  40. package/lib/core/error/print-run-group-error.js.map +0 -1
  41. package/lib/core/file-storage/e2e-encryption.d.ts +0 -9
  42. package/lib/core/file-storage/e2e-encryption.js +0 -46
  43. package/lib/core/file-storage/e2e-encryption.js.map +0 -1
  44. package/lib/core/file-storage/file-storage.d.ts +0 -23
  45. package/lib/core/file-storage/file-storage.js +0 -266
  46. package/lib/core/file-storage/file-storage.js.map +0 -1
  47. package/lib/core/models/cache-urls.model.d.ts +0 -6
  48. package/lib/core/models/cache-urls.model.js +0 -3
  49. package/lib/core/models/cache-urls.model.js.map +0 -1
  50. package/lib/core/models/cloud-task-runner-options.d.ts +0 -21
  51. package/lib/core/models/cloud-task-runner-options.js +0 -3
  52. package/lib/core/models/cloud-task-runner-options.js.map +0 -1
  53. package/lib/core/models/distributed-agent/grouped-tasks.model.d.ts +0 -6
  54. package/lib/core/models/distributed-agent/grouped-tasks.model.js +0 -3
  55. package/lib/core/models/distributed-agent/grouped-tasks.model.js.map +0 -1
  56. package/lib/core/models/distributed-agent/index.d.ts +0 -3
  57. package/lib/core/models/distributed-agent/index.js +0 -20
  58. package/lib/core/models/distributed-agent/index.js.map +0 -1
  59. package/lib/core/models/distributed-agent/task-to-execute.model.d.ts +0 -7
  60. package/lib/core/models/distributed-agent/task-to-execute.model.js +0 -3
  61. package/lib/core/models/distributed-agent/task-to-execute.model.js.map +0 -1
  62. package/lib/core/models/distributed-agent/tasks-api-response.model.d.ts +0 -15
  63. package/lib/core/models/distributed-agent/tasks-api-response.model.js +0 -3
  64. package/lib/core/models/distributed-agent/tasks-api-response.model.js.map +0 -1
  65. package/lib/core/models/machine-info.model.d.ts +0 -6
  66. package/lib/core/models/machine-info.model.js +0 -3
  67. package/lib/core/models/machine-info.model.js.map +0 -1
  68. package/lib/core/models/run-context.model.d.ts +0 -130
  69. package/lib/core/models/run-context.model.js +0 -22
  70. package/lib/core/models/run-context.model.js.map +0 -1
  71. package/lib/core/models/run-data.model.d.ts +0 -10
  72. package/lib/core/models/run-data.model.js +0 -3
  73. package/lib/core/models/run-data.model.js.map +0 -1
  74. package/lib/core/models/task-execution.model.d.ts +0 -14
  75. package/lib/core/models/task-execution.model.js +0 -3
  76. package/lib/core/models/task-execution.model.js.map +0 -1
  77. package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.d.ts +0 -19
  78. package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.js +0 -1
  79. package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.js.map +0 -1
  80. package/lib/core/runners/cloud-enabled/cloud-enabled.runner.d.ts +0 -3
  81. package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js +0 -1
  82. package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js.map +0 -1
  83. package/lib/core/runners/cloud-enabled/cloud-remote-cache.d.ts +0 -22
  84. package/lib/core/runners/cloud-enabled/cloud-remote-cache.js +0 -1
  85. package/lib/core/runners/cloud-enabled/cloud-remote-cache.js.map +0 -1
  86. package/lib/core/runners/cloud-enabled/cloud-run.api.d.ts +0 -23
  87. package/lib/core/runners/cloud-enabled/cloud-run.api.js +0 -1
  88. package/lib/core/runners/cloud-enabled/cloud-run.api.js.map +0 -1
  89. package/lib/core/runners/cloud-enabled/id-generator.d.ts +0 -1
  90. package/lib/core/runners/cloud-enabled/id-generator.js +0 -1
  91. package/lib/core/runners/cloud-enabled/id-generator.js.map +0 -1
  92. package/lib/core/runners/distributed-agent/distributed-agent.api.d.ts +0 -16
  93. package/lib/core/runners/distributed-agent/distributed-agent.api.js +0 -1
  94. package/lib/core/runners/distributed-agent/distributed-agent.api.js.map +0 -1
  95. package/lib/core/runners/distributed-agent/distributed-agent.impl.d.ts +0 -1
  96. package/lib/core/runners/distributed-agent/distributed-agent.impl.js +0 -1
  97. package/lib/core/runners/distributed-agent/distributed-agent.impl.js.map +0 -1
  98. package/lib/core/runners/distributed-agent/execute-tasks.d.ts +0 -10
  99. package/lib/core/runners/distributed-agent/execute-tasks.js +0 -1
  100. package/lib/core/runners/distributed-agent/execute-tasks.js.map +0 -1
  101. package/lib/core/runners/distributed-agent/invoke-tasks-using-nx-imperative-api.d.ts +0 -9
  102. package/lib/core/runners/distributed-agent/invoke-tasks-using-nx-imperative-api.js +0 -1
  103. package/lib/core/runners/distributed-agent/invoke-tasks-using-nx-imperative-api.js.map +0 -1
  104. package/lib/core/runners/distributed-agent/invoke-tasks-using-run-many.d.ts +0 -9
  105. package/lib/core/runners/distributed-agent/invoke-tasks-using-run-many.js +0 -1
  106. package/lib/core/runners/distributed-agent/invoke-tasks-using-run-many.js.map +0 -1
  107. package/lib/core/runners/distributed-execution/distributed-execution.api.d.ts +0 -10
  108. package/lib/core/runners/distributed-execution/distributed-execution.api.js +0 -1
  109. package/lib/core/runners/distributed-execution/distributed-execution.api.js.map +0 -1
  110. package/lib/core/runners/distributed-execution/distributed-execution.runner.d.ts +0 -1
  111. package/lib/core/runners/distributed-execution/distributed-execution.runner.js +0 -1
  112. package/lib/core/runners/distributed-execution/distributed-execution.runner.js.map +0 -1
  113. package/lib/core/runners/distributed-execution/process-task.d.ts +0 -7
  114. package/lib/core/runners/distributed-execution/process-task.js +0 -1
  115. package/lib/core/runners/distributed-execution/process-task.js.map +0 -1
  116. package/lib/core/runners/distributed-execution/process-tasks.d.ts +0 -7
  117. package/lib/core/runners/distributed-execution/process-tasks.js +0 -1
  118. package/lib/core/runners/distributed-execution/process-tasks.js.map +0 -1
  119. package/lib/core/runners/distributed-execution/split-task-graph-into-stages.d.ts +0 -2
  120. package/lib/core/runners/distributed-execution/split-task-graph-into-stages.js +0 -1
  121. package/lib/core/runners/distributed-execution/split-task-graph-into-stages.js.map +0 -1
  122. package/lib/core/runners/distributed-execution/task-graph-creator.d.ts +0 -17
  123. package/lib/core/runners/distributed-execution/task-graph-creator.js +0 -1
  124. package/lib/core/runners/distributed-execution/task-graph-creator.js.map +0 -1
  125. package/lib/core/terminal-output/end-of-run-message.d.ts +0 -9
  126. package/lib/core/terminal-output/end-of-run-message.js +0 -45
  127. package/lib/core/terminal-output/end-of-run-message.js.map +0 -1
  128. package/lib/core/terminal-output/message-reporter.d.ts +0 -11
  129. package/lib/core/terminal-output/message-reporter.js +0 -71
  130. package/lib/core/terminal-output/message-reporter.js.map +0 -1
  131. package/lib/core/terminal-output/output-obfuscator.d.ts +0 -6
  132. package/lib/core/terminal-output/output-obfuscator.js +0 -48
  133. package/lib/core/terminal-output/output-obfuscator.js.map +0 -1
  134. package/lib/core/terminal-output/read-task-terminal-output.d.ts +0 -2
  135. package/lib/core/terminal-output/read-task-terminal-output.js +0 -60
  136. package/lib/core/terminal-output/read-task-terminal-output.js.map +0 -1
  137. package/lib/daemon/process-run-end.d.ts +0 -3
  138. package/lib/daemon/process-run-end.js +0 -66
  139. package/lib/daemon/process-run-end.js.map +0 -1
  140. package/lib/generators/init/init.d.ts +0 -1
  141. package/lib/generators/init/init.js +0 -96
  142. package/lib/generators/init/init.js.map +0 -1
  143. package/lib/generators/init/schema.json +0 -21
  144. package/lib/nx-cloud-tasks-runner.d.ts +0 -2
  145. package/lib/nx-cloud-tasks-runner.js +0 -154
  146. package/lib/nx-cloud-tasks-runner.js.map +0 -1
  147. package/lib/utilities/axios.d.ts +0 -10
  148. package/lib/utilities/axios.js +0 -87
  149. package/lib/utilities/axios.js.map +0 -1
  150. package/lib/utilities/create-unchanged-value-timeout.d.ts +0 -4
  151. package/lib/utilities/create-unchanged-value-timeout.js +0 -24
  152. package/lib/utilities/create-unchanged-value-timeout.js.map +0 -1
  153. package/lib/utilities/distributed-task-execution-detection.d.ts +0 -2
  154. package/lib/utilities/distributed-task-execution-detection.js +0 -36
  155. package/lib/utilities/distributed-task-execution-detection.js.map +0 -1
  156. package/lib/utilities/dte-artifact-storage.d.ts +0 -7
  157. package/lib/utilities/dte-artifact-storage.js +0 -43
  158. package/lib/utilities/dte-artifact-storage.js.map +0 -1
  159. package/lib/utilities/environment.d.ts +0 -28
  160. package/lib/utilities/environment.js +0 -222
  161. package/lib/utilities/environment.js.map +0 -1
  162. package/lib/utilities/is-ci.d.ts +0 -1
  163. package/lib/utilities/is-ci.js +0 -21
  164. package/lib/utilities/is-ci.js.map +0 -1
  165. package/lib/utilities/is-private-cloud.d.ts +0 -1
  166. package/lib/utilities/is-private-cloud.js +0 -32
  167. package/lib/utilities/is-private-cloud.js.map +0 -1
  168. package/lib/utilities/metric-logger.d.ts +0 -22
  169. package/lib/utilities/metric-logger.js +0 -70
  170. package/lib/utilities/metric-logger.js.map +0 -1
  171. package/lib/utilities/nx-imports.d.ts +0 -0
  172. package/lib/utilities/nx-imports.js +0 -60
  173. package/lib/utilities/nx-imports.js.map +0 -1
  174. package/lib/utilities/print-message.d.ts +0 -1
  175. package/lib/utilities/print-message.js +0 -64
  176. package/lib/utilities/print-message.js.map +0 -1
  177. package/lib/utilities/serializer-overrides.d.ts +0 -3
  178. package/lib/utilities/serializer-overrides.js +0 -44
  179. package/lib/utilities/serializer-overrides.js.map +0 -1
  180. package/lib/utilities/waiter.d.ts +0 -6
  181. package/lib/utilities/waiter.js +0 -36
  182. package/lib/utilities/waiter.js.map +0 -1
  183. package/tsconfig.json +0 -16
  184. package/tsconfig.lib.json +0 -11
  185. package/tsconfig.spec.json +0 -21
  186. package/tslint.json +0 -7
@@ -1,66 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.uploadAndShowRunDetails = void 0;
13
- const fs_1 = require("fs");
14
- const open = require("open");
15
- const path_1 = require("path");
16
- const environment_1 = require("../../utilities/environment");
17
- const cloud_run_api_1 = require("../runners/cloud-enabled/cloud-run.api");
18
- const id_generator_1 = require("../runners/cloud-enabled/id-generator");
19
- const message_reporter_1 = require("../terminal-output/message-reporter");
20
- const output_obfuscator_1 = require("../terminal-output/output-obfuscator");
21
- const read_task_terminal_output_1 = require("../terminal-output/read-task-terminal-output");
22
- const stripJsonComments = require("strip-json-comments");
23
- const { workspaceRoot, output } = require('../../utilities/nx-imports');
24
- function uploadRunDetails(options) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- const errors = new message_reporter_1.MessageReporter(options);
27
- const runContext = {};
28
- const machineInfo = (0, environment_1.getMachineInfo)(options);
29
- const api = new cloud_run_api_1.CloudRunApi(errors, runContext, options, machineInfo);
30
- const directory = (0, environment_1.getNxCacheDirectory)(options);
31
- const outputObfusactor = new output_obfuscator_1.OutputObfuscator(options.maskedProperties);
32
- const runInfo = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(directory, 'run.json')).toString());
33
- // we need to connect to cloud if not connected yet
34
- const tasks = runInfo.tasks.map((t) => (Object.assign(Object.assign({}, t), { terminalOutput: (0, read_task_terminal_output_1.readTaskTerminalOutput)(directory, outputObfusactor, t.hash, t.cacheStatus, t.status) })));
35
- const linkId = (0, id_generator_1.generateUniqueLinkId)();
36
- yield api.endRun(runInfo.run, tasks, {
37
- branch: null,
38
- runGroup: null,
39
- ciExecutionId: null,
40
- ciExecutionEnv: null,
41
- }, linkId);
42
- return `${options.url || 'https://nx.app'}/runs/${linkId}`;
43
- });
44
- }
45
- function uploadAndShowRunDetails() {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- const options = readOptions();
48
- const url = yield uploadRunDetails(options);
49
- output.success({
50
- title: 'Successfully uploaded the run details',
51
- bodyLines: [`View run details at ${url}`],
52
- });
53
- open(url);
54
- });
55
- }
56
- exports.uploadAndShowRunDetails = uploadAndShowRunDetails;
57
- function readOptions() {
58
- var _a, _b, _c;
59
- try {
60
- return (_c = (_b = (_a = JSON.parse(stripJsonComments((0, fs_1.readFileSync)((0, path_1.join)(workspaceRoot, 'nx.json')).toString()))) === null || _a === void 0 ? void 0 : _a.tasksRunnerOptions) === null || _b === void 0 ? void 0 : _b.default) === null || _c === void 0 ? void 0 : _c.options;
61
- }
62
- catch (e) {
63
- return {};
64
- }
65
- }
66
- //# sourceMappingURL=upload-and-show-run-details.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-and-show-run-details.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/commands/upload-and-show-run-details.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAkC;AAClC,6BAA6B;AAC7B,+BAA4B;AAC5B,6DAGqC;AAErC,0EAAqE;AACrE,wEAA6E;AAC7E,0EAAsE;AACtE,4EAAwE;AACxE,4FAAsF;AACtF,yDAAyD;AAEzD,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAExE,SAAe,gBAAgB,CAAC,OAA+B;;QAC7D,MAAM,MAAM,GAAG,IAAI,kCAAe,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,UAAU,GAAG,EAAS,CAAC;QAC7B,MAAM,WAAW,GAAG,IAAA,4BAAc,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,GAAG,GAAG,IAAI,2BAAW,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QAEtE,MAAM,SAAS,GAAG,IAAA,iCAAmB,EAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,gBAAgB,GAAG,IAAI,oCAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAExE,MAAM,OAAO,GAAG,IAAI,C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3E,0CAAE,kBAAkB,0CAAE,OAAO,0CAAE,OAAO,CAAC;KACzC;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAA4B,CAAC;KACrC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- export declare function printCacheableTargetsError(wrongTargets: string[]): void;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printCacheableTargetsError = void 0;
4
- const { output } = require('../../utilities/nx-imports');
5
- function printCacheableTargetsError(wrongTargets) {
6
- output.error({
7
- title: `Targets Must Be Cacheable Operations.`,
8
- bodyLines: [
9
- `- Found non-cacheable operation(s): ${wrongTargets.join(', ')}`,
10
- `- Cacheable operations are defined in your nx.json file.`,
11
- ],
12
- });
13
- }
14
- exports.printCacheableTargetsError = printCacheableTargetsError;
15
- //# sourceMappingURL=print-cacheable-targets-error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"print-cacheable-targets-error.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/error/print-cacheable-targets-error.ts"],"names":[],"mappings":";;;AAAA,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEzD,SAAgB,0BAA0B,CAAC,YAAsB;IAC/D,MAAM,CAAC,KAAK,CAAC;QACX,KAAK,EAAE,uCAAuC;QAC9C,SAAS,EAAE;YACT,uCAAuC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAChE,0DAA0D;SAC3D;KACF,CAAC,CAAC;AACL,CAAC;AARD,gEAQC"}
@@ -1 +0,0 @@
1
- export declare function printInvalidRunnerError(): void;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printInvalidRunnerError = void 0;
4
- const { output } = require('../../utilities/nx-imports');
5
- function printInvalidRunnerError() {
6
- output.error({
7
- title: `Invalid Task Runner Configuration`,
8
- bodyLines: [
9
- 'To use Distributed Task Execution, your default task runner configuration must',
10
- 'use the "@nrwl/nx-cloud" task runner.',
11
- '',
12
- 'This can be adjusted in "nx.json".',
13
- ],
14
- });
15
- }
16
- exports.printInvalidRunnerError = printInvalidRunnerError;
17
- //# sourceMappingURL=print-invalid-runner-error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"print-invalid-runner-error.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/error/print-invalid-runner-error.ts"],"names":[],"mappings":";;;AAAA,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEzD,SAAgB,uBAAuB;IACrC,MAAM,CAAC,KAAK,CAAC;QACX,KAAK,EAAE,mCAAmC;QAC1C,SAAS,EAAE;YACT,gFAAgF;YAChF,uCAAuC;YACvC,EAAE;YACF,oCAAoC;SACrC;KACF,CAAC,CAAC;AACL,CAAC;AAVD,0DAUC"}
@@ -1,2 +0,0 @@
1
- export declare function canDetectRunGroup(runGroup: string | null, ciExecutionId: string | null): boolean;
2
- export declare function printRunGroupError(): void;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printRunGroupError = exports.canDetectRunGroup = void 0;
4
- const { output } = require('../../utilities/nx-imports');
5
- function canDetectRunGroup(runGroup, ciExecutionId) {
6
- return !!runGroup || !!ciExecutionId;
7
- }
8
- exports.canDetectRunGroup = canDetectRunGroup;
9
- function printRunGroupError() {
10
- output.error({
11
- title: `Unable to determine the context for running Nx in CI`,
12
- bodyLines: [
13
- "- Nx tried to determine the context automatically but wasn't able to do it.",
14
- '- Use the NX_CI_EXECUTION_ID env variable to set it manually.',
15
- `- NX_CI_EXECUTION_ID must be a unique value for every CI execution/run.`,
16
- ],
17
- });
18
- }
19
- exports.printRunGroupError = printRunGroupError;
20
- //# sourceMappingURL=print-run-group-error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"print-run-group-error.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/error/print-run-group-error.ts"],"names":[],"mappings":";;;AAAA,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEzD,SAAgB,iBAAiB,CAC/B,QAAuB,EACvB,aAA4B;IAE5B,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,aAAa,CAAC;AACvC,CAAC;AALD,8CAKC;AAED,SAAgB,kBAAkB;IAChC,MAAM,CAAC,KAAK,CAAC;QACX,KAAK,EAAE,sDAAsD;QAC7D,SAAS,EAAE;YACT,6EAA6E;YAC7E,+DAA+D;YAC/D,yEAAyE;SAC1E;KACF,CAAC,CAAC;AACL,CAAC;AATD,gDASC"}
@@ -1,9 +0,0 @@
1
- /// <reference types="node" />
2
- export declare class E2EEncryption {
3
- encryptionKey: Buffer | undefined;
4
- constructor(key: string | undefined);
5
- private to32bytes;
6
- hasEncryption(): boolean;
7
- encryptFile(file: string): void;
8
- decryptFile(file: string): void;
9
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.E2EEncryption = void 0;
4
- const fs_1 = require("fs");
5
- const crypto_1 = require("crypto");
6
- class E2EEncryption {
7
- constructor(key) {
8
- if (key) {
9
- this.encryptionKey = this.to32bytes(key);
10
- }
11
- }
12
- to32bytes(key) {
13
- let res = key;
14
- while (res.length < 32) {
15
- res += key;
16
- }
17
- return Buffer.from(res).slice(0, 32);
18
- }
19
- hasEncryption() {
20
- return !!this.encryptionKey;
21
- }
22
- encryptFile(file) {
23
- const iv = (0, crypto_1.randomBytes)(16);
24
- const cipher = (0, crypto_1.createCipheriv)('aes-256-cbc', this.encryptionKey, iv);
25
- const decryptedFileContents = (0, fs_1.readFileSync)(file);
26
- const e = cipher.update(decryptedFileContents);
27
- const encryptedFileContents = Buffer.concat([iv, e, cipher.final()]);
28
- (0, fs_1.writeFileSync)(file, encryptedFileContents);
29
- }
30
- decryptFile(file) {
31
- const encryptedFileContents = (0, fs_1.readFileSync)(file);
32
- try {
33
- const decipher = (0, crypto_1.createDecipheriv)('aes-256-cbc', this.encryptionKey, encryptedFileContents.slice(0, 16) // iv
34
- );
35
- const encryptedText = encryptedFileContents.slice(16); // remove the iv
36
- const d = decipher.update(encryptedText);
37
- const decryptedFileContents = Buffer.concat([d, decipher.final()]);
38
- (0, fs_1.writeFileSync)(file, decryptedFileContents);
39
- }
40
- catch (e) {
41
- throw new Error(`Could not decrypt the artifact. Please check your encryption key.`);
42
- }
43
- }
44
- }
45
- exports.E2EEncryption = E2EEncryption;
46
- //# sourceMappingURL=e2e-encryption.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"e2e-encryption.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/file-storage/e2e-encryption.ts"],"names":[],"mappings":";;;AAAA,2BAAiD;AACjD,mCAAuE;AAEvE,MAAa,aAAa;IAGxB,YAAY,GAAuB;QACjC,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;SAC1C;IACH,CAAC;IAEO,SAAS,CAAC,GAAW;QAC3B,IAAI,GAAG,GAAG,GAAG,CAAC;QACd,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,EAAE;YACtB,GAAG,IAAI,GAAG,CAAC;SACZ;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,aAAa;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED,WAAW,CAAC,IAAY;QACtB,MAAM,EAAE,GAAG,IAAA,oBAAW,EAAC,EAAE,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAA,uBAAc,EAAC,aAAa,EAAE,IAAI,CAAC,aAAc,EAAE,EAAE,CAAC,CAAC;QACtE,MAAM,qBAAqB,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,CAAC;QACjD,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC/C,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACrE,IAAA,kBAAa,EAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAC7C,CAAC;IAED,WAAW,CAAC,IAAY;QACtB,MAAM,qBAAqB,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,CAAC;QAEjD,IAAI;YACF,MAAM,QAAQ,GAAG,IAAA,yBAAgB,EAC/B,aAAa,EACb,IAAI,CAAC,aAAc,EACnB,qBAAqB,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK;aACzC,CAAC;YACF,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;YACvE,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YACzC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YACnE,IAAA,kBAAa,EAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;SAC5C;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;SACH;IACH,CAAC;CACF;AAjDD,sCAiDC"}
@@ -1,23 +0,0 @@
1
- import { CloudTaskRunnerOptions } from '../models/cloud-task-runner-options';
2
- import { E2EEncryption } from './e2e-encryption';
3
- import { ErrorReporterApi } from '../api/error-reporter.api';
4
- import { AxiosRequestConfig } from 'axios';
5
- export declare class FileStorage {
6
- private readonly encryption;
7
- private readonly errorReporter;
8
- private readonly context;
9
- storedHashes: string[];
10
- axiosConfigBuilder: (axiosConfig: AxiosRequestConfig) => AxiosRequestConfig;
11
- constructor(encryption: E2EEncryption, errorReporter: ErrorReporterApi, options: CloudTaskRunnerOptions, context: string);
12
- retrieve(hash: string, url: string, cacheDirectory: string): Promise<void>;
13
- store(hash: string, url: string, cacheDirectory: string): Promise<any>;
14
- private createFileName;
15
- private downloadFile;
16
- private convertStreamIntoPromise;
17
- private createCommitFile;
18
- private createCommitFilePath;
19
- private createFile;
20
- private uploadFile;
21
- private generateMD5;
22
- private getFileUploadHeaders;
23
- }
@@ -1,266 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FileStorage = void 0;
13
- const path_1 = require("path");
14
- const path = require("path");
15
- const environment_1 = require("../../utilities/environment");
16
- const axios_1 = require("../../utilities/axios");
17
- const fs_1 = require("fs");
18
- const waiter_1 = require("../../utilities/waiter");
19
- const metric_logger_1 = require("../../utilities/metric-logger");
20
- const crypto_1 = require("crypto");
21
- const axios = require('axios');
22
- const tar = require('tar');
23
- const { output } = require('../../utilities/nx-imports');
24
- class FileStorage {
25
- constructor(encryption, errorReporter, options, context) {
26
- this.encryption = encryption;
27
- this.errorReporter = errorReporter;
28
- this.context = context;
29
- this.storedHashes = [];
30
- this.axiosConfigBuilder = (axiosConfig) => axiosConfig;
31
- if (options.customAxiosConfigPath) {
32
- this.axiosConfigBuilder = require((0, path_1.join)(process.cwd(), options.customAxiosConfigPath));
33
- }
34
- }
35
- retrieve(hash, url, cacheDirectory) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- if (environment_1.VERBOSE_LOGGING) {
38
- output.note({
39
- title: `Nx Cloud: Downloading ${hash}`,
40
- bodyLines: [`RETRIEVAL URL: ${url}`],
41
- });
42
- }
43
- const tgz = this.createFileName(hash, cacheDirectory);
44
- const commitFilePath = this.createCommitFilePath(hash, cacheDirectory);
45
- try {
46
- yield this.downloadFile(url, tgz, commitFilePath);
47
- this.createCommitFile(commitFilePath);
48
- if (environment_1.VERBOSE_LOGGING) {
49
- output.note({ title: `Nx Cloud: Downloaded ${hash}` });
50
- }
51
- }
52
- catch (e) {
53
- const error = e.message || e.toString();
54
- const errorMessage = `Failed to download or untar the cached artifacts for ${hash}. Context: ${this.context}. Url: ${url}. Error: ${error}.`;
55
- if (this.context === 'dte-agent' || this.context === 'dte-main') {
56
- output.note({
57
- title: `A 404 error occurred in the DTE context. Hash: ${hash}. Url: ${url}.`,
58
- bodyLines: [
59
- `- Please update the nx-cloud package to the latest version.`,
60
- `- Please update the nx package to 15.8.9 or higher. You can do it without updating the plugins.`,
61
- `- If you are not able to update the nx package, and you are passing --configuration to a run-many or an affected command, define that configuration for all the projects.`,
62
- ],
63
- });
64
- }
65
- yield this.errorReporter.reportError(errorMessage);
66
- throw new Error(errorMessage);
67
- }
68
- });
69
- }
70
- store(hash, url, cacheDirectory) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- if (environment_1.VERBOSE_LOGGING) {
73
- output.note({
74
- title: `Nx Cloud: Storing ${hash}`,
75
- bodyLines: [`STORAGE URL: ${url}`],
76
- });
77
- }
78
- let tgz;
79
- if (process.env.NRWL_INTERNAL_TAR_DEBUG) {
80
- const maxAttempts = 3;
81
- let currAttempt = 1;
82
- let tarSuccess = false;
83
- let tarResults = [];
84
- while (currAttempt <= maxAttempts && !tarSuccess) {
85
- tgz = yield this.createFile(hash, cacheDirectory);
86
- // extract to /tmp/ unique per attempt
87
- let tmpPath = `/tmp/${hash}/attempt${currAttempt}`;
88
- (0, fs_1.mkdirSync)(tmpPath, { recursive: true });
89
- try {
90
- const q = (0, fs_1.createReadStream)(tgz).pipe(tar.x({
91
- cwd: tmpPath,
92
- }));
93
- yield this.convertStreamIntoPromise(q);
94
- tarSuccess = true;
95
- }
96
- catch (e) {
97
- console.error(e);
98
- yield (0, waiter_1.wait)(5000);
99
- }
100
- tarResults.push({ attempt: currAttempt, success: tarSuccess });
101
- currAttempt++;
102
- }
103
- if (tarResults.some((r) => !r.success)) {
104
- console.error(JSON.stringify(tarResults, null, 2));
105
- const failedAttemptsString = tarResults
106
- .filter((r) => !r.success)
107
- .map((r) => r.attempt)
108
- .join(', ');
109
- throw new Error(`Untar failed for hash ${hash} in attempts ${failedAttemptsString} out of ${tarResults.length}`);
110
- }
111
- }
112
- else {
113
- // Create tar normally
114
- tgz = yield this.createFile(hash, cacheDirectory);
115
- }
116
- yield this.uploadFile(url, tgz);
117
- this.storedHashes.push(hash);
118
- if (environment_1.VERBOSE_LOGGING) {
119
- output.note({ title: `Nx Cloud: Stored ${hash}` });
120
- }
121
- });
122
- }
123
- createFileName(hash, cacheDirectory) {
124
- return path.join(cacheDirectory, `${hash}.tar.gz`);
125
- }
126
- downloadFile(url, tgz, commitFilePath) {
127
- var _a;
128
- return __awaiter(this, void 0, void 0, function* () {
129
- const recorder = (0, metric_logger_1.createMetricRecorder)('retrieveFile');
130
- let resp;
131
- try {
132
- resp = yield (0, axios_1.axiosMultipleTries)(() => axios(url, this.axiosConfigBuilder({
133
- method: 'GET',
134
- responseType: 'stream',
135
- maxContentLength: environment_1.NX_CLOUD_NO_TIMEOUTS
136
- ? environment_1.UNLIMITED_FILE_SIZE
137
- : environment_1.DEFAULT_FILE_SIZE_LIMIT,
138
- maxBodyLength: environment_1.NX_CLOUD_NO_TIMEOUTS
139
- ? environment_1.UNLIMITED_FILE_SIZE
140
- : environment_1.DEFAULT_FILE_SIZE_LIMIT,
141
- timeout: environment_1.NX_CLOUD_NO_TIMEOUTS ? environment_1.UNLIMITED_TIMEOUT : 60000,
142
- })));
143
- recorder.recordMetric(Object.assign(Object.assign({}, (0, metric_logger_1.mapRespToPerfEntry)(resp)), { payloadSize: resp.data.headers['content-length'] }));
144
- }
145
- catch (e) {
146
- // Log performance metrics before re-throwing
147
- recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
148
- ? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
149
- : metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
150
- throw e;
151
- }
152
- // if the tar file is here, we wait for the commit file to appear for 25 seconds
153
- // this is to avoid race conditions, where two processes are downloading the same
154
- // artifact in parallel
155
- if ((0, fs_1.existsSync)(tgz)) {
156
- let i = 0;
157
- while (i++ < 50) {
158
- if ((0, fs_1.existsSync)(commitFilePath))
159
- return;
160
- yield (0, waiter_1.wait)(500);
161
- }
162
- }
163
- // if the tar file is already here, do nothing, wait for the commit file to appear
164
- if (this.encryption.hasEncryption()) {
165
- yield new Promise((res) => {
166
- const f = resp.data.pipe((0, fs_1.createWriteStream)(tgz));
167
- f.on('close', () => res(null));
168
- });
169
- this.encryption.decryptFile(tgz);
170
- const q = (0, fs_1.createReadStream)(tgz).pipe(tar.x({
171
- cwd: path.dirname(tgz),
172
- }));
173
- return this.convertStreamIntoPromise(q);
174
- }
175
- else {
176
- const q = resp.data.pipe(tar.x({
177
- cwd: path.dirname(tgz),
178
- }));
179
- return this.convertStreamIntoPromise(q);
180
- }
181
- });
182
- }
183
- convertStreamIntoPromise(q) {
184
- return new Promise((res, rej) => {
185
- q.on('error', (e) => {
186
- if (e.tarCode === 'TAR_ABORT' &&
187
- e.message.indexOf('incorrect header check') > -1) {
188
- console.warn('FileStorage: Decompression OK, Trailing garbage ignored.');
189
- res(null);
190
- }
191
- else {
192
- rej(e);
193
- }
194
- });
195
- q.on('close', () => res(null));
196
- });
197
- }
198
- createCommitFile(commitFilePath) {
199
- (0, fs_1.writeFileSync)(commitFilePath, 'true');
200
- }
201
- createCommitFilePath(hash, cacheDirectory) {
202
- return path.join(cacheDirectory, `${hash}.commit`);
203
- }
204
- createFile(hash, cacheDirectory) {
205
- return __awaiter(this, void 0, void 0, function* () {
206
- const tgz = this.createFileName(hash, cacheDirectory);
207
- yield tar.c({
208
- gzip: true,
209
- file: tgz,
210
- cwd: cacheDirectory,
211
- }, [hash]);
212
- if (this.encryption.hasEncryption()) {
213
- this.encryption.encryptFile(tgz);
214
- }
215
- return tgz;
216
- });
217
- }
218
- uploadFile(url, tgz) {
219
- var _a;
220
- return __awaiter(this, void 0, void 0, function* () {
221
- const recorder = (0, metric_logger_1.createMetricRecorder)('storeFile');
222
- const tarData = (0, fs_1.readFileSync)(tgz);
223
- const tarHash = this.generateMD5(tarData);
224
- const headers = this.getFileUploadHeaders(url, tarHash);
225
- try {
226
- const resp = yield (0, axios_1.axiosMultipleTries)(() => axios(url, this.axiosConfigBuilder({
227
- method: 'PUT',
228
- data: tarData,
229
- headers: headers,
230
- maxContentLength: environment_1.NX_CLOUD_NO_TIMEOUTS
231
- ? environment_1.UNLIMITED_FILE_SIZE
232
- : environment_1.DEFAULT_FILE_SIZE_LIMIT,
233
- maxBodyLength: environment_1.NX_CLOUD_NO_TIMEOUTS
234
- ? environment_1.UNLIMITED_FILE_SIZE
235
- : environment_1.DEFAULT_FILE_SIZE_LIMIT,
236
- timeout: environment_1.NX_CLOUD_NO_TIMEOUTS ? environment_1.UNLIMITED_TIMEOUT : 120000,
237
- })));
238
- recorder.recordMetric(Object.assign(Object.assign({}, (0, metric_logger_1.mapRespToPerfEntry)(resp)), { payloadSize: resp.config.headers['Content-Length'] }));
239
- }
240
- catch (e) {
241
- recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
242
- ? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
243
- : metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
244
- throw e;
245
- }
246
- });
247
- }
248
- generateMD5(data) {
249
- const hasher = (0, crypto_1.createHash)('md5');
250
- hasher.update(data);
251
- return hasher.digest('base64');
252
- }
253
- getFileUploadHeaders(url, tarHash) {
254
- const privateCloudFileServer = url.includes('/file/');
255
- const headers = {
256
- 'Content-Type': 'application/octet-stream',
257
- 'x-ms-blob-type': 'BlockBlob',
258
- };
259
- if (privateCloudFileServer) {
260
- headers['Content-MD5'] = tarHash;
261
- }
262
- return headers;
263
- }
264
- }
265
- exports.FileStorage = FileStorage;
266
- //# sourceMappingURL=file-storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-storage.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/file-storage/file-storage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+BAA4B;AAC5B,6BAA6B;AAC7B,6DAMqC;AACrC,iDAA2D;AAG3D,2BAOY;AACZ,mDAA8C;AAC9C,iEAIuC;AAEvC,mCAAoC;AAEpC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAG/B,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEzD,MAAa,WAAW;IAItB,YACmB,UAAyB,EACzB,aAA+B,EAChD,OAA+B,EACd,OAAe;QAHf,eAAU,GAAV,UAAU,CAAe;QACzB,kBAAa,GAAb,aAAa,CAAkB;QAE/B,YAAO,GAAP,OAAO,CAAQ;QAPlC,iBAAY,GAAG,EAAc,CAAC;QAC9B,uBAAkB,GAAG,CAAC,WAA+B,EAAE,EAAE,CAAC,WAAW,CAAC;QAQpE,IAAI,OAAO,CAAC,qBAAqB,EAAE;YACjC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAA,WAAI,EACpC,OAAO,CAAC,GAAG,EAAE,EACb,OAAO,CAAC,qBAAqB,CAC9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AC1C,gBAAgB,EAAE,WAAW;SAC9B,CAAC;QAEF,IAAI,sBAAsB,EAAE;YAC1B,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;SAClC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AArSD,kCAqSC"}
@@ -1,6 +0,0 @@
1
- export interface CacheUrls {
2
- [hash: string]: {
3
- get: string;
4
- put: string;
5
- };
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=cache-urls.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache-urls.model.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/models/cache-urls.model.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- export interface DefaultTasksRunnerOptions {
2
- parallel?: number;
3
- cacheableOperations?: string[];
4
- cacheableTargets?: string[];
5
- runtimeCacheInputs?: string[];
6
- cacheDirectory?: string;
7
- remoteCache?: any;
8
- lifeCycle: any;
9
- captureStderr?: boolean;
10
- skipNxCache?: boolean;
11
- }
12
- export interface CloudTaskRunnerOptions extends DefaultTasksRunnerOptions {
13
- accessToken?: string;
14
- canTrackAnalytics?: boolean;
15
- encryptionKey?: string;
16
- maskedProperties?: string[];
17
- showUsageWarnings?: boolean;
18
- customAxiosConfigPath?: string;
19
- useLatestApi?: boolean;
20
- url?: string;
21
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=cloud-task-runner-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloud-task-runner-options.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/models/cloud-task-runner-options.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export interface GroupedTasks {
2
- target: string;
3
- projects: string[];
4
- configuration: string | null;
5
- params: string;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=grouped-tasks.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grouped-tasks.model.js","sourceRoot":"","sources":["../../../../../../../../libs/nx-packages/nx-cloud/lib/core/models/distributed-agent/grouped-tasks.model.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from './grouped-tasks.model';
2
- export * from './task-to-execute.model';
3
- export * from './tasks-api-response.model';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./grouped-tasks.model"), exports);
18
- __exportStar(require("./task-to-execute.model"), exports);
19
- __exportStar(require("./tasks-api-response.model"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/nx-packages/nx-cloud/lib/core/models/distributed-agent/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,0DAAwC;AACxC,6DAA2C"}
@@ -1,7 +0,0 @@
1
- export interface TaskToExecute {
2
- taskId: string;
3
- projectName: string;
4
- target: string;
5
- configuration: string | null;
6
- params: string;
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=task-to-execute.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task-to-execute.model.js","sourceRoot":"","sources":["../../../../../../../../libs/nx-packages/nx-cloud/lib/core/models/distributed-agent/task-to-execute.model.ts"],"names":[],"mappings":""}