@nrwl/nx-cloud 13.3.1 → 13.5.1-beta.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/nx-cloud.js +10 -3
  2. package/bin/nx-cloud.js.map +1 -1
  3. package/generators.json +12 -0
  4. package/lib/core/api/error-reporter.api.d.ts +6 -0
  5. package/lib/core/api/error-reporter.api.js +36 -0
  6. package/lib/core/api/error-reporter.api.js.map +1 -0
  7. package/lib/core/api/run-group.api.d.ts +2 -2
  8. package/lib/core/api/run-group.api.js +73 -1
  9. package/lib/core/api/run-group.api.js.map +1 -1
  10. package/lib/core/commands/clean-up-agents.js +3 -3
  11. package/lib/core/commands/clean-up-agents.js.map +1 -1
  12. package/lib/core/commands/record-output.d.ts +0 -15
  13. package/lib/core/commands/record-output.js +36 -57
  14. package/lib/core/commands/record-output.js.map +1 -1
  15. package/lib/core/commands/start-ci-run.js +27 -5
  16. package/lib/core/commands/start-ci-run.js.map +1 -1
  17. package/lib/core/commands/stop-all-agents.js +6 -3
  18. package/lib/core/commands/stop-all-agents.js.map +1 -1
  19. package/lib/core/commands/upload-and-show-run-details.d.ts +1 -0
  20. package/lib/core/commands/upload-and-show-run-details.js +65 -0
  21. package/lib/core/commands/upload-and-show-run-details.js.map +1 -0
  22. package/lib/core/error/print-cacheable-targets-error.d.ts +1 -0
  23. package/lib/core/error/print-cacheable-targets-error.js +15 -0
  24. package/lib/core/error/print-cacheable-targets-error.js.map +1 -0
  25. package/lib/core/error/print-invalid-runner-error.d.ts +1 -0
  26. package/lib/core/error/print-invalid-runner-error.js +17 -0
  27. package/lib/core/error/print-invalid-runner-error.js.map +1 -0
  28. package/lib/core/error/print-run-group-error.d.ts +1 -0
  29. package/lib/core/error/print-run-group-error.js +9 -5
  30. package/lib/core/error/print-run-group-error.js.map +1 -1
  31. package/lib/core/file-storage/file-storage.d.ts +11 -1
  32. package/lib/core/file-storage/file-storage.js +103 -21
  33. package/lib/core/file-storage/file-storage.js.map +1 -1
  34. package/lib/core/models/cloud-task-runner-options.d.ts +1 -1
  35. package/lib/core/models/distributed-agent/tasks-api-response.model.d.ts +6 -0
  36. package/lib/core/models/run-context.model.d.ts +89 -1
  37. package/lib/core/models/run-context.model.js +19 -0
  38. package/lib/core/models/run-context.model.js.map +1 -1
  39. package/lib/core/models/run-data.model.d.ts +1 -1
  40. package/lib/core/models/task-execution.model.d.ts +1 -0
  41. package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.d.ts +1 -7
  42. package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.js +93 -1
  43. package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.js.map +1 -1
  44. package/lib/core/runners/cloud-enabled/cloud-enabled.runner.d.ts +1 -2
  45. package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js +320 -1
  46. package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js.map +1 -1
  47. package/lib/core/runners/cloud-enabled/cloud-remote-cache.d.ts +8 -2
  48. package/lib/core/runners/cloud-enabled/cloud-remote-cache.js +133 -1
  49. package/lib/core/runners/cloud-enabled/cloud-remote-cache.js.map +1 -1
  50. package/lib/core/runners/cloud-enabled/cloud-run.api.d.ts +7 -1
  51. package/lib/core/runners/cloud-enabled/cloud-run.api.js +168 -1
  52. package/lib/core/runners/cloud-enabled/cloud-run.api.js.map +1 -1
  53. package/lib/core/runners/cloud-enabled/id-generator.d.ts +1 -0
  54. package/lib/core/runners/cloud-enabled/id-generator.js +16 -0
  55. package/lib/core/runners/cloud-enabled/id-generator.js.map +1 -0
  56. package/lib/core/runners/distributed-agent/distributed-agent.api.d.ts +6 -3
  57. package/lib/core/runners/distributed-agent/distributed-agent.api.js +93 -1
  58. package/lib/core/runners/distributed-agent/distributed-agent.api.js.map +1 -1
  59. package/lib/core/runners/distributed-agent/distributed-agent.impl.js +157 -1
  60. package/lib/core/runners/distributed-agent/distributed-agent.impl.js.map +1 -1
  61. package/lib/core/runners/distributed-agent/execute-tasks.d.ts +10 -0
  62. package/lib/core/runners/distributed-agent/execute-tasks.js +114 -0
  63. package/lib/core/runners/distributed-agent/execute-tasks.js.map +1 -0
  64. package/lib/core/runners/distributed-agent/invoke-tasks-using-nx-imperative-api.d.ts +9 -0
  65. package/lib/core/runners/distributed-agent/invoke-tasks-using-nx-imperative-api.js +58 -0
  66. package/lib/core/runners/distributed-agent/invoke-tasks-using-nx-imperative-api.js.map +1 -0
  67. package/lib/core/runners/distributed-agent/invoke-tasks-using-run-many.d.ts +9 -0
  68. package/lib/core/runners/distributed-agent/invoke-tasks-using-run-many.js +97 -0
  69. package/lib/core/runners/distributed-agent/invoke-tasks-using-run-many.js.map +1 -0
  70. package/lib/core/runners/distributed-execution/distributed-execution.api.d.ts +2 -2
  71. package/lib/core/runners/distributed-execution/distributed-execution.api.js +152 -1
  72. package/lib/core/runners/distributed-execution/distributed-execution.api.js.map +1 -1
  73. package/lib/core/runners/distributed-execution/distributed-execution.runner.d.ts +0 -11
  74. package/lib/core/runners/distributed-execution/distributed-execution.runner.js +118 -1
  75. package/lib/core/runners/distributed-execution/distributed-execution.runner.js.map +1 -1
  76. package/lib/core/runners/distributed-execution/process-task.d.ts +7 -0
  77. package/lib/core/runners/distributed-execution/process-task.js +45 -0
  78. package/lib/core/runners/distributed-execution/process-task.js.map +1 -0
  79. package/lib/core/runners/distributed-execution/process-tasks.d.ts +7 -0
  80. package/lib/core/runners/distributed-execution/process-tasks.js +67 -0
  81. package/lib/core/runners/distributed-execution/process-tasks.js.map +1 -0
  82. package/lib/core/runners/distributed-execution/split-task-graph-into-stages.d.ts +2 -0
  83. package/lib/core/runners/distributed-execution/split-task-graph-into-stages.js +37 -0
  84. package/lib/core/runners/distributed-execution/split-task-graph-into-stages.js.map +1 -0
  85. package/lib/core/runners/distributed-execution/task-graph-creator.d.ts +17 -0
  86. package/lib/core/runners/distributed-execution/task-graph-creator.js +100 -0
  87. package/lib/core/runners/distributed-execution/task-graph-creator.js.map +1 -0
  88. package/lib/core/terminal-output/end-of-run-message.d.ts +2 -1
  89. package/lib/core/terminal-output/end-of-run-message.js +18 -10
  90. package/lib/core/terminal-output/end-of-run-message.js.map +1 -1
  91. package/lib/core/terminal-output/read-task-terminal-output.d.ts +2 -0
  92. package/lib/core/terminal-output/read-task-terminal-output.js +60 -0
  93. package/lib/core/terminal-output/read-task-terminal-output.js.map +1 -0
  94. package/lib/daemon/process-run-end.d.ts +3 -0
  95. package/lib/daemon/process-run-end.js +66 -0
  96. package/lib/daemon/process-run-end.js.map +1 -0
  97. package/lib/generators/init/init.d.ts +1 -2
  98. package/lib/generators/init/init.js +33 -56
  99. package/lib/generators/init/init.js.map +1 -1
  100. package/lib/generators/init/schema.json +5 -0
  101. package/lib/nx-cloud-tasks-runner.js +83 -25
  102. package/lib/nx-cloud-tasks-runner.js.map +1 -1
  103. package/lib/utilities/axios.d.ts +2 -1
  104. package/lib/utilities/axios.js +26 -12
  105. package/lib/utilities/axios.js.map +1 -1
  106. package/lib/utilities/create-unchanged-value-timeout.d.ts +4 -0
  107. package/lib/utilities/{create-no-new-messages-timeout.js → create-unchanged-value-timeout.js} +6 -7
  108. package/lib/utilities/create-unchanged-value-timeout.js.map +1 -0
  109. package/lib/utilities/distributed-task-execution-detection.d.ts +2 -0
  110. package/lib/utilities/distributed-task-execution-detection.js +36 -0
  111. package/lib/utilities/distributed-task-execution-detection.js.map +1 -0
  112. package/lib/utilities/dte-artifact-storage.d.ts +7 -0
  113. package/lib/utilities/dte-artifact-storage.js +43 -0
  114. package/lib/utilities/dte-artifact-storage.js.map +1 -0
  115. package/lib/utilities/environment.d.ts +11 -7
  116. package/lib/utilities/environment.js +97 -33
  117. package/lib/utilities/environment.js.map +1 -1
  118. package/lib/utilities/is-ci.d.ts +1 -0
  119. package/lib/utilities/is-ci.js +21 -0
  120. package/lib/utilities/is-ci.js.map +1 -0
  121. package/lib/utilities/metric-logger.js +2 -2
  122. package/lib/utilities/metric-logger.js.map +1 -1
  123. package/lib/utilities/nx-imports.js +54 -33
  124. package/lib/utilities/nx-imports.js.map +1 -1
  125. package/lib/utilities/print-message.js +40 -11
  126. package/lib/utilities/print-message.js.map +1 -1
  127. package/lib/utilities/serializer-overrides.d.ts +3 -0
  128. package/lib/utilities/serializer-overrides.js +44 -0
  129. package/lib/utilities/serializer-overrides.js.map +1 -0
  130. package/package.json +7 -6
  131. package/project.json +37 -0
  132. package/tsconfig.lib.json +1 -1
  133. package/tsconfig.spec.json +2 -1
  134. package/collection.json +0 -22
  135. package/lib/utilities/create-no-new-messages-timeout.d.ts +0 -1
  136. package/lib/utilities/create-no-new-messages-timeout.js.map +0 -1
package/collection.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "name": "Nx Cloud",
3
- "version": "0.1",
4
- "schematics": {
5
- "init": {
6
- "factory": "./lib/generators/init/init#schematic",
7
- "schema": "./lib/generators/init/schema.json",
8
- "description": "Initialize the @nrwl/nx-cloud plugin",
9
- "aliases": ["ng-add"],
10
- "hidden": true
11
- }
12
- },
13
- "generators": {
14
- "init": {
15
- "factory": "./lib/generators/init/init#generator",
16
- "schema": "./lib/generators/init/schema.json",
17
- "description": "Initialize the @nrwl/nx-cloud plugin",
18
- "aliases": ["ng-add"],
19
- "hidden": true
20
- }
21
- }
22
- }
@@ -1 +0,0 @@
1
- export declare function createNoNewMessagesTimeout(): (newValue: any) => void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-no-new-messages-timeout.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/lib/utilities/create-no-new-messages-timeout.ts"],"names":[],"mappings":";;;AAAA,+CAAoD;AACpD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE3C,SAAgB,0BAA0B;IACxC,IAAI,KAAK,GAAG,IAAI,MAAM,EAAE,CAAC;IACzB,IAAI,YAAY,CAAC;IACjB,OAAO,CAAC,QAAQ,EAAE,EAAE;QAClB,IAAI,KAAK,KAAK,QAAQ,EAAE;YACtB,KAAK,GAAG,QAAQ,CAAC;YACjB,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;SAC3B;aAAM;YACL,IAAI,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,YAAY,CAAC,OAAO,EAAE,GAAG,iCAAmB,EAAE;gBACvE,MAAM,CAAC,KAAK,CAAC;oBACX,KAAK,EAAE,wCAAwC;iBAChD,CAAC,CAAC;gBACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACjB;SACF;IACH,CAAC,CAAC;AACJ,CAAC;AAhBD,gEAgBC"}