@uipath/solution-tool 1.205.0-preview.281 → 1.206.0-preview.279

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 (132) hide show
  1. package/dist/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
  2. package/dist/{cleanup-command-service-je9d70vv.js → cleanup-command-service-ejakyhea.js} +34 -31
  3. package/dist/deploy-delete-service-r7abfh28.js +23 -0
  4. package/dist/deploy-run-service-rnthz10q.js +23 -0
  5. package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-6my5vm61.js} +72 -62
  6. package/dist/deploy.js +35 -37
  7. package/dist/deployment-search-gfm907tx.js +54 -0
  8. package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
  9. package/dist/feed-resolver-14crsx5y.js +27 -0
  10. package/dist/feed-scope-failure-67cyybn0.js +20 -0
  11. package/dist/feed-session-g94q2bjc.js +23 -0
  12. package/dist/first-party-service-n3vva2m4.js +8 -0
  13. package/dist/governance-options-t20vsznh.js +19 -0
  14. package/dist/index-aspmac9f.js +24 -0
  15. package/dist/index-ddk6v1ej.js +60 -0
  16. package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
  17. package/dist/index-qq4kre7a.js +93 -0
  18. package/dist/index-t262f2xv.js +16 -0
  19. package/dist/index.js +33 -34
  20. package/dist/init.js +18 -21
  21. package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
  22. package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
  23. package/dist/{list-5fke71jn.js → list-jntan9tx.js} +23 -23
  24. package/dist/models/pack-command-types.d.ts +3 -1
  25. package/dist/node-kwzcw5ex.js +25 -0
  26. package/dist/pack-command-service-pwaeha7y.js +29 -0
  27. package/dist/{pack-project-ha0pxw3h.js → pack-project-ztt1hfrs.js} +33 -40
  28. package/dist/pack.js +26 -30
  29. package/dist/package-id-4tsg5jsb.js +11 -0
  30. package/dist/{packager-tool-4pa108k7.js → packager-tool-1bz9h5ca.js} +11 -11
  31. package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
  32. package/dist/{packager-tool-f23a485e.js → packager-tool-55ztfccd.js} +176 -196
  33. package/dist/{packager-tool-45a8fkw0.js → packager-tool-95y24705.js} +37 -39
  34. package/dist/{packager-tool-2vmz56qh.js → packager-tool-9j8e5q1z.js} +184 -33
  35. package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
  36. package/dist/packager-tool-a6va4gc5.js +1178 -0
  37. package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
  38. package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
  39. package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
  40. package/dist/packager-tool-c64hqa8n.js +106 -0
  41. package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
  42. package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
  43. package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
  44. package/dist/packager-tool-f84z7nds.js +130 -0
  45. package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
  46. package/dist/packager-tool-fqs6hdcy.js +290 -0
  47. package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
  48. package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
  49. package/dist/{packager-tool-gyqfs04e.js → packager-tool-nrhqgr4z.js} +273 -255
  50. package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
  51. package/dist/{packager-tool-d78ww4hb.js → packager-tool-pyt9fvty.js} +51 -48
  52. package/dist/packager-tool-q5d9df2q.js +74 -0
  53. package/dist/{packager-tool-cvf46scg.js → packager-tool-q8ryk6q9.js} +122 -89
  54. package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
  55. package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
  56. package/dist/packager-tool-resolver-td3bhccd.js +20 -0
  57. package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
  58. package/dist/{packager-tool-2t72aez8.js → packager-tool-snm6s7b5.js} +15 -15
  59. package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
  60. package/dist/{packager-tool-wm0jaz7p.js → packager-tool-t3a48ys5.js} +305 -657
  61. package/dist/{packager-tool-dnrk1gg6.js → packager-tool-t3ahzjh1.js} +356 -298
  62. package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
  63. package/dist/packager-tool-vrtabg73.js +2307 -0
  64. package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
  65. package/dist/{packager-tool-h1tq7bqf.js → packager-tool-vx39dhvn.js} +65 -35
  66. package/dist/{packager-tool-5qzgdb66.js → packager-tool-w34wyhwf.js} +13 -15
  67. package/dist/packager-tool-w8bcwfd3.js +280 -0
  68. package/dist/{packager-tool-1ybnxbp9.js → packager-tool-wm0h0wa1.js} +18 -18
  69. package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
  70. package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
  71. package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
  72. package/dist/{packager-tool-056k8w2f.js → packager-tool-z5r49ky9.js} +75 -9
  73. package/dist/packager-tool.js +6 -7
  74. package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
  75. package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
  76. package/dist/project-contributions-kh9yftvg.js +27 -0
  77. package/dist/publish.js +17 -17
  78. package/dist/resource-mutations-mfn5k1hb.js +27 -0
  79. package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
  80. package/dist/resource.js +13 -16
  81. package/dist/{restore-command-service-pzpet021.js → restore-command-service-n880dxre.js} +37 -34
  82. package/dist/{run-service-hk8w2h31.js → run-service-4vhn6mtb.js} +144 -66
  83. package/dist/services/deploy-activate-service.d.ts +2 -1
  84. package/dist/services/deployment-search-client.d.ts +2 -1
  85. package/dist/services/deployment-search.d.ts +39 -0
  86. package/dist/services/feed-resolver.d.ts +13 -1
  87. package/dist/services/feed-selection.d.ts +8 -5
  88. package/dist/services/feed-session.d.ts +34 -0
  89. package/dist/services/install-run.d.ts +92 -0
  90. package/dist/services/prepare-solution-resources.d.ts +11 -2
  91. package/dist/services/project-contributions.d.ts +2 -0
  92. package/dist/services/project-identity-telemetry.d.ts +3 -0
  93. package/dist/services/publish-service.d.ts +20 -3
  94. package/dist/services/solution-identity.d.ts +18 -0
  95. package/dist/ship-telemetry-bkf3800w.js +16 -0
  96. package/dist/solution-auth-jxcgd2m0.js +10 -0
  97. package/dist/solution-identity-92h2fbpa.js +19 -0
  98. package/dist/templates/AGENTS.md +27 -29
  99. package/dist/tool.js +32 -33
  100. package/package.json +2 -2
  101. package/dist/deploy-delete-service-0tm600d1.js +0 -25
  102. package/dist/deploy-run-service-hne5w17k.js +0 -25
  103. package/dist/deployment-search-32zvxn35.js +0 -55
  104. package/dist/feed-resolver-pdeb4wkq.js +0 -28
  105. package/dist/feed-scope-failure-4baame72.js +0 -19
  106. package/dist/feed-session-7xqphdrg.js +0 -17
  107. package/dist/first-party-service-sd8yaf73.js +0 -27
  108. package/dist/governance-options-bqgv5fte.js +0 -32
  109. package/dist/index-dqa169gp.js +0 -25
  110. package/dist/index-prm27bvm.js +0 -138
  111. package/dist/index-wdndcwab.js +0 -667
  112. package/dist/node-v7xhqwe2.js +0 -86
  113. package/dist/pack-command-service-b1v9c8cw.js +0 -35
  114. package/dist/package-id-rpzgy31w.js +0 -13
  115. package/dist/packager-tool-53w8skv5.js +0 -262
  116. package/dist/packager-tool-5edvzz80.js +0 -543
  117. package/dist/packager-tool-99jaqabz.js +0 -171
  118. package/dist/packager-tool-9hsmn8th.js +0 -418
  119. package/dist/packager-tool-azre7mm1.js +0 -182
  120. package/dist/packager-tool-fn13r8e1.js +0 -188
  121. package/dist/packager-tool-gdtpsdn7.js +0 -342
  122. package/dist/packager-tool-qw47eyw7.js +0 -43
  123. package/dist/packager-tool-resolver-994z3jkj.js +0 -23
  124. package/dist/packager-tool-tedbebpq.js +0 -5367
  125. package/dist/packager-tool-x1ah4eez.js +0 -68
  126. package/dist/prepare-solution-resources-m1djfj62.js +0 -29
  127. package/dist/project-contributions-79ndycrx.js +0 -32
  128. package/dist/resource-mutations-c3krjqze.js +0 -36
  129. package/dist/ship-telemetry-myes7ak5.js +0 -21
  130. package/dist/solution-auth-aead70sw.js +0 -11
  131. /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
  132. /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
@@ -1,18 +1,17 @@
1
1
  import {
2
- isGuid,
3
- logger
4
- } from "./packager-tool-tx834spe.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
5
4
  import {
6
5
  catchError
7
- } from "./packager-tool-6ybywxxn.js";
6
+ } from "./packager-tool-m07vyk89.js";
8
7
  import {
9
- getFileSystem
10
- } from "./packager-tool-v1f5e8t9.js";
8
+ logger,
9
+ isGuid
10
+ } from "./packager-tool-9vrwpgt3.js";
11
11
  import {
12
- strFromU8,
13
- unzipSync
14
- } from "./packager-tool-dfrk01gn.js";
15
- import"./packager-tool-1de529jm.js";
12
+ strFromU82,
13
+ unzipSync2
14
+ } from "./packager-tool-rj2d1g0w.js";
16
15
 
17
16
  // ../common/src/zip.ts
18
17
  function resolveZipEntryPath(fs, root, entryName) {
@@ -59,7 +58,7 @@ async function extractZipDataToDir(fs, zipData, destinationDir) {
59
58
  await fs.mkdir(destinationDir);
60
59
  const lexicalRoot = fs.path.resolve(destinationDir);
61
60
  const realRoot = await fs.realpath(lexicalRoot);
62
- const entries = unzipSync(zipData);
61
+ const entries = unzipSync2(zipData);
63
62
  for (const [entryName, content] of Object.entries(entries)) {
64
63
  const target = resolveZipEntryPath(fs, lexicalRoot, entryName);
65
64
  if (entryName.endsWith("/")) {
@@ -89,7 +88,7 @@ function readSolutionIdField(bytes) {
89
88
  if (!bytes) {
90
89
  return;
91
90
  }
92
- const [parseError, parsed] = catchError(() => JSON.parse(strFromU8(bytes)));
91
+ const [parseError, parsed] = catchError(() => JSON.parse(strFromU82(bytes)));
93
92
  if (parseError || !parsed) {
94
93
  return;
95
94
  }
@@ -97,7 +96,7 @@ function readSolutionIdField(bytes) {
97
96
  return typeof id === "string" && isGuid(id) ? id : undefined;
98
97
  }
99
98
  function readBundledSolutionId(archive) {
100
- const [unzipError, entries] = catchError(() => unzipSync(archive, {
99
+ const [unzipError, entries] = catchError(() => unzipSync2(archive, {
101
100
  filter: (file) => file.name === SOLUTION_STORAGE_ENTRY || isRootUipxEntry(file.name)
102
101
  }));
103
102
  if (unzipError || !entries) {
@@ -113,8 +112,7 @@ function readBundledSolutionId(archive) {
113
112
  }
114
113
  export {
115
114
  extractArchive,
116
- extractZipDataToDir,
117
115
  readBundledSolutionId
118
116
  };
119
117
 
120
- //# debugId=68AB8937A27882A764756E2164756E21
118
+ //# debugId=C8E98E1DA69E00FC64756E2164756E21
@@ -1,40 +1,41 @@
1
1
  import {
2
- SOLUTION_PATH_INSTRUCTIONS,
3
- applyAuthConnection,
4
- checkSolutionPathAsync,
5
- createSolutionPackager,
6
- readSolutionFileAsUint8Array,
7
- resolveSdkLogLevel
8
- } from "./packager-tool-056k8w2f.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
9
4
  import {
10
- ensurePackagerTools
11
- } from "./packager-tool-b2nhscfk.js";
12
- import"./packager-tool-60af1hw2.js";
5
+ catchError,
6
+ carriedInstructions
7
+ } from "./packager-tool-m07vyk89.js";
13
8
  import {
14
- SolutionPackOptions
15
- } from "./packager-tool-2vmz56qh.js";
16
- import"./packager-tool-99jaqabz.js";
17
- import"./packager-tool-fn13r8e1.js";
18
- import"./packager-tool-wm0jaz7p.js";
19
- import"./packager-tool-5ddtwzva.js";
9
+ RESULTS,
10
+ logger,
11
+ OutputFormatter
12
+ } from "./packager-tool-9vrwpgt3.js";
13
+ import"./packager-tool-rj2d1g0w.js";
20
14
  import {
21
15
  ToolResult
22
- } from "./packager-tool-pbmqk39a.js";
23
- import"./packager-tool-43ahv5mn.js";
16
+ } from "./packager-tool-a7s0gbxs.js";
24
17
  import {
25
- OutputFormatter,
26
- RESULTS,
27
- logger
28
- } from "./packager-tool-tx834spe.js";
18
+ SolutionPackOptions
19
+ } from "./packager-tool-9j8e5q1z.js";
20
+ import"./packager-tool-t3a48ys5.js";
21
+ import"./packager-tool-ca5ngmqv.js";
22
+ import"./packager-tool-qzcd5c9s.js";
29
23
  import {
30
- carriedInstructions,
31
- catchError
32
- } from "./packager-tool-6ybywxxn.js";
24
+ ensurePackagerTools2
25
+ } from "./packager-tool-wm8nj6e9.js";
33
26
  import {
34
- getFileSystem
35
- } from "./packager-tool-v1f5e8t9.js";
36
- import"./packager-tool-dfrk01gn.js";
37
- import"./packager-tool-1de529jm.js";
27
+ captureExtractedSolution2
28
+ } from "./packager-tool-f84z7nds.js";
29
+ import"./packager-tool-t39pjz7n.js";
30
+ import {
31
+ createProjectActivityObserver,
32
+ createSolutionPackager,
33
+ readSolutionFileAsUint8Array,
34
+ resolveSdkLogLevel,
35
+ applyAuthConnection,
36
+ SOLUTION_PATH_INSTRUCTIONS,
37
+ checkSolutionPathAsync
38
+ } from "./packager-tool-z5r49ky9.js";
38
39
 
39
40
  // src/services/cleanup-command-service.ts
40
41
  class CleanupCommandService {
@@ -111,10 +112,11 @@ Removing unused items...
111
112
  if (isUisFile) {
112
113
  const uint8Array = await readSolutionFileAsUint8Array(this.fs, absoluteSolutionPath);
113
114
  inputPath = await packager.setupAsync(uint8Array);
115
+ await captureExtractedSolution2(options.telemetryCapture, inputPath);
114
116
  } else {
115
117
  inputPath = await packager.setupAsync(absoluteSolutionPath);
116
118
  }
117
- await ensurePackagerTools(inputPath, this.fs);
119
+ await ensurePackagerTools2(inputPath, this.fs);
118
120
  const cleanupOptions = await this.createCleanupOptions(inputPath, options);
119
121
  return packager.cleanupSolutionAsync(cleanupOptions);
120
122
  });
@@ -129,6 +131,7 @@ Removing unused items...
129
131
  }
130
132
  async createCleanupOptions(inputPath, options) {
131
133
  const cleanupOptions = new SolutionPackOptions;
134
+ cleanupOptions.projectActivity = createProjectActivityObserver("uip solution cleanup");
132
135
  cleanupOptions.inputPath = inputPath;
133
136
  cleanupOptions.cleanupOptions = {
134
137
  dryRun: options.dryRun ?? false,
@@ -146,4 +149,4 @@ export {
146
149
  CleanupCommandService
147
150
  };
148
151
 
149
- //# debugId=AF3981CD74D49C9664756E2164756E21
152
+ //# debugId=6EB3727D4B34FE6164756E2164756E21
@@ -0,0 +1,23 @@
1
+ import {
2
+ deleteDeploymentAsync2
3
+ } from "./packager-tool-95y24705.js";
4
+ import"./packager-tool-q5d9df2q.js";
5
+ import"./packager-tool-wm0h0wa1.js";
6
+ import"./packager-tool-w8bcwfd3.js";
7
+ import"./packager-tool-fqs6hdcy.js";
8
+ import"./packager-tool-vrtabg73.js";
9
+ import"./packager-tool-bs1jn1yn.js";
10
+ import"./packager-tool-a6va4gc5.js";
11
+ import"./packager-tool-fp46ebde.js";
12
+ import"./packager-tool-ppj5f4y7.js";
13
+ import"./packager-tool-c64hqa8n.js";
14
+ import"./packager-tool-t39pjz7n.js";
15
+ import"./packager-tool-9vrwpgt3.js";
16
+ import"./packager-tool-m07vyk89.js";
17
+ import"./packager-tool-vgrswa8p.js";
18
+ import"./packager-tool-rj2d1g0w.js";
19
+ export {
20
+ deleteDeploymentAsync2 as deleteDeploymentAsync
21
+ };
22
+
23
+ //# debugId=E95ADBB10A1A7C8D64756E2164756E21
@@ -0,0 +1,23 @@
1
+ import {
2
+ deployRunAsync2
3
+ } from "./packager-tool-nrhqgr4z.js";
4
+ import"./packager-tool-q8ryk6q9.js";
5
+ import"./packager-tool-snm6s7b5.js";
6
+ import"./packager-tool-w8bcwfd3.js";
7
+ import"./packager-tool-fqs6hdcy.js";
8
+ import"./packager-tool-vrtabg73.js";
9
+ import"./packager-tool-bs1jn1yn.js";
10
+ import"./packager-tool-a6va4gc5.js";
11
+ import"./packager-tool-fp46ebde.js";
12
+ import"./packager-tool-ppj5f4y7.js";
13
+ import"./packager-tool-c64hqa8n.js";
14
+ import"./packager-tool-t39pjz7n.js";
15
+ import"./packager-tool-9vrwpgt3.js";
16
+ import"./packager-tool-m07vyk89.js";
17
+ import"./packager-tool-vgrswa8p.js";
18
+ import"./packager-tool-rj2d1g0w.js";
19
+ export {
20
+ deployRunAsync2 as deployRunAsync
21
+ };
22
+
23
+ //# debugId=80708213322FBDAD64756E2164756E21
@@ -1,51 +1,51 @@
1
+ import"./packager-tool-vgrswa8p.js";
1
2
  import {
2
- INCOMPLETE_SWEEP_ADVICE,
3
- findDeploymentAcrossFeeds,
4
- reportIncompleteSweepAsync
5
- } from "./packager-tool-1ybnxbp9.js";
3
+ catchError,
4
+ httpStatusOf2
5
+ } from "./packager-tool-m07vyk89.js";
6
6
  import {
7
- deploymentNextSteps,
8
- needsPendingResources,
9
- readActivationBlockersAsync,
10
- readPendingResourcesAsync
11
- } from "./packager-tool-2t72aez8.js";
7
+ quoteForShell
8
+ } from "./packager-tool-9vrwpgt3.js";
12
9
  import {
10
+ Configuration2,
11
+ PipelinesApi,
13
12
  DeploymentSearchNeedsUserSessionError,
14
- findCurrentDeploymentAsync,
15
- findDeploymentByName,
16
- isAuthRefusal
17
- } from "./packager-tool-9hsmn8th.js";
13
+ isAuthRefusal,
14
+ classifyFeedSession2,
15
+ FeedReadRefusedError2,
16
+ feedReadRefusalAsync2
17
+ } from "./packager-tool-bs1jn1yn.js";
18
18
  import {
19
- feedScopeInitOverride,
20
- feedSelectorFlag,
21
- folderKeyInitOverride
22
- } from "./packager-tool-azre7mm1.js";
19
+ Configuration3,
20
+ DeploymentsApi2
21
+ } from "./packager-tool-a6va4gc5.js";
22
+ import"./packager-tool-vrtabg73.js";
23
+ import"./packager-tool-rj2d1g0w.js";
24
+ import"./packager-tool-t39pjz7n.js";
23
25
  import {
24
- Configuration,
25
- PipelinesApi
26
- } from "./packager-tool-97rcgwvv.js";
26
+ findDeploymentByName2,
27
+ DeploymentSearchCapError2,
28
+ findCurrentDeploymentAsync2
29
+ } from "./packager-tool-w8bcwfd3.js";
30
+ import"./packager-tool-ppj5f4y7.js";
31
+ import"./packager-tool-fp46ebde.js";
27
32
  import {
28
- Configuration as Configuration2,
29
- DeploymentsApi
30
- } from "./packager-tool-tedbebpq.js";
33
+ folderKeyInitOverride2,
34
+ feedScopeInitOverride2,
35
+ feedSelectorFlag2
36
+ } from "./packager-tool-fqs6hdcy.js";
31
37
  import {
32
- FeedReadRefusedError,
33
- classifyFeedSession,
34
- feedReadRefusalForApplication
35
- } from "./packager-tool-qw47eyw7.js";
36
- import"./packager-tool-8ptbmmmp.js";
37
- import"./packager-tool-5edvzz80.js";
38
- import"./packager-tool-43ahv5mn.js";
39
- import {
40
- httpStatusOf,
41
- quoteForShell
42
- } from "./packager-tool-tx834spe.js";
38
+ readPendingResourcesAsync,
39
+ readActivationBlockersAsync,
40
+ needsPendingResources,
41
+ deploymentNextSteps
42
+ } from "./packager-tool-snm6s7b5.js";
43
43
  import {
44
- catchError
45
- } from "./packager-tool-6ybywxxn.js";
46
- import"./packager-tool-v1f5e8t9.js";
47
- import"./packager-tool-dfrk01gn.js";
48
- import"./packager-tool-1de529jm.js";
44
+ findDeploymentAcrossFeeds,
45
+ INCOMPLETE_SWEEP_ADVICE,
46
+ reportIncompleteSweepAsync
47
+ } from "./packager-tool-wm0h0wa1.js";
48
+ import"./packager-tool-c64hqa8n.js";
49
49
 
50
50
  // src/services/deploy-status-service.ts
51
51
  class IncompleteFeedSweepError extends Error {
@@ -68,11 +68,11 @@ function looksLikeDeploymentKey(reference) {
68
68
  return GUID.test(reference);
69
69
  }
70
70
  async function describeDeploymentByKeyAsync(auth, deploymentKey, scope, feedSelector = "", addressedBy = "key") {
71
- const deploymentsApi = new DeploymentsApi(new Configuration2({
71
+ const deploymentsApi = new DeploymentsApi2(new Configuration3({
72
72
  basePath: auth.basePath,
73
73
  accessToken: auth.accessToken
74
74
  }));
75
- const pipelinesApi = new PipelinesApi(new Configuration({
75
+ const pipelinesApi = new PipelinesApi(new Configuration2({
76
76
  basePath: auth.basePath,
77
77
  accessToken: auth.accessToken
78
78
  }));
@@ -84,19 +84,19 @@ async function describeDeploymentByKeyAsync(auth, deploymentKey, scope, feedSele
84
84
  if (!lookupError && info) {
85
85
  return describeFromLookupAsync(auth, apis, deploymentKey, info, addressedBy);
86
86
  }
87
- if (lookupError && httpStatusOf(lookupError) !== 404) {
87
+ if (lookupError && httpStatusOf2(lookupError) !== 404) {
88
88
  throw lookupError;
89
89
  }
90
- if (classifyFeedSession(auth) !== "user") {
90
+ if (classifyFeedSession2(auth) !== "user") {
91
91
  return;
92
92
  }
93
93
  return describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedSelector, addressedBy);
94
94
  }
95
95
  async function describeFromLookupAsync(auth, apis, requestedKey, info, addressedBy) {
96
- const feedScope = info.locationKey ? folderKeyInitOverride(info.locationKey) : undefined;
96
+ const feedScope = info.locationKey ? folderKeyInitOverride2(info.locationKey) : undefined;
97
97
  const selector = info.locationKey ? ` --feed ${info.locationKey}` : "";
98
98
  const superseded = addressedBy === "key" && info.deploymentKey !== requestedKey;
99
- const [rowError, headRow] = await catchError(findCurrentDeploymentAsync(auth, {
99
+ const [rowError, headRow] = await catchError(findCurrentDeploymentAsync2(auth, {
100
100
  key: info.deploymentKey,
101
101
  installDeploymentKey: info.installDeploymentKey,
102
102
  packageName: info.packageName
@@ -120,7 +120,7 @@ async function describeFromLookupAsync(auth, apis, requestedKey, info, addressed
120
120
  const pendingResources = blockers && blockers.length > 0 ? blockers : needsPendingResources(current) ? await readPendingResourcesAsync(apis, current, feedScope) : undefined;
121
121
  const steps = deploymentNextSteps(current, pendingResources, selector) ?? [];
122
122
  if (!row && info.status === "SuccessfulInstall" && !blockers) {
123
- steps.unshift(headRow ? `Deployment '${current.name}' is installed but not active (DeploymentStatus: SuccessfulInstall). What is left before it runs could not be read: the Solutions search does not list record '${current.key}' yet (its newest row is '${headRow.key}'). Run 'uip solution deploy status ${quoteForShell(current.name)}' again in a moment, or open the deployment in Orchestrator (Tenant > Solutions > Deployments).` : `Deployment '${current.name}' is installed but not active (DeploymentStatus: SuccessfulInstall). What is left before it runs could not be read: the Solutions search needs a user session${rowError ? ` (${rowError.message})` : ""}. Run 'uip solution deploy status ${quoteForShell(current.name)}' after 'uip login', or open the deployment in Orchestrator (Tenant > Solutions > Deployments).`);
123
+ steps.unshift(unreadActivationStep(current, headRow, rowError));
124
124
  }
125
125
  if (superseded) {
126
126
  steps.unshift(supersededLine(requestedKey, current, selector));
@@ -137,7 +137,7 @@ async function describeFromLookupAsync(auth, apis, requestedKey, info, addressed
137
137
  async function describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedSelector, addressedBy) {
138
138
  const [getError, requested] = await catchError(apis.deployments.deploymentsGetByKey({ deploymentKey }, scope));
139
139
  if (getError) {
140
- if (httpStatusOf(getError) === 404) {
140
+ if (httpStatusOf2(getError) === 404) {
141
141
  return;
142
142
  }
143
143
  throw getError;
@@ -145,7 +145,7 @@ async function describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedS
145
145
  if (!requested) {
146
146
  return;
147
147
  }
148
- const [headError, head] = await catchError(findCurrentDeploymentAsync(auth, requested, scope));
148
+ const [headError, head] = await catchError(findCurrentDeploymentAsync2(auth, requested, scope));
149
149
  const moved = headError || !head ? null : head.key !== requested.key;
150
150
  const superseded = addressedBy === "name" && moved !== null ? false : moved;
151
151
  const current = toCurrentRecord(head ?? requested, {
@@ -169,6 +169,18 @@ async function describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedS
169
169
  ...steps.length > 0 ? { nextSteps: steps } : {}
170
170
  };
171
171
  }
172
+ function unreadActivationStep(current, headRow, rowError) {
173
+ const unread = `Deployment '${current.name}' is installed but not active (DeploymentStatus: SuccessfulInstall). What is left before it runs could not be read:`;
174
+ const orchestrator = "open the deployment in Orchestrator (Tenant > Solutions > Deployments)";
175
+ if (headRow) {
176
+ return `${unread} the Solutions search does not list record '${current.key}' yet (its newest row is '${headRow.key}'). Run 'uip solution deploy status ${quoteForShell(current.name)}' again in a moment, or ${orchestrator}.`;
177
+ }
178
+ if (rowError instanceof DeploymentSearchCapError2) {
179
+ return `${unread} the package's deployment history is too long for the Solutions search to read in full (${rowError.message}). Open the deployment in Orchestrator (Tenant > Solutions > Deployments), which is not limited by this cap.`;
180
+ }
181
+ const reason = rowError ? ` (${rowError.message})` : "";
182
+ return `${unread} the Solutions search needs a user session${reason}. Run 'uip solution deploy status ${quoteForShell(current.name)}' after 'uip login', or ${orchestrator}.`;
183
+ }
172
184
  function toCurrentRecord(record, extra) {
173
185
  return {
174
186
  key: record.key,
@@ -191,32 +203,32 @@ function supersededLine(requestedKey, current, feedSelector) {
191
203
  }
192
204
  async function describeDeploymentAsync(auth, reference, options) {
193
205
  const { selectedFeed } = options;
194
- const scope = selectedFeed ? feedScopeInitOverride(selectedFeed) : undefined;
195
- const feedSelector = feedSelectorFlag(selectedFeed);
206
+ const scope = selectedFeed ? feedScopeInitOverride2(selectedFeed) : undefined;
207
+ const feedSelector = feedSelectorFlag2(selectedFeed);
196
208
  if (looksLikeDeploymentKey(reference)) {
197
209
  const byKey = await describeDeploymentByKeyAsync(auth, reference, scope, feedSelector);
198
210
  if (byKey) {
199
211
  return byKey;
200
212
  }
201
- const session = classifyFeedSession(auth);
213
+ const session = classifyFeedSession2(auth);
202
214
  if (session === "unknown") {
203
215
  return;
204
216
  }
205
217
  if (session === "application") {
206
218
  if (selectedFeed && selectedFeed.kind !== "tenant") {
207
- const refusal = feedReadRefusalForApplication(auth, `Reading a deployment by name in the feed '${selectedFeed.name ?? selectedFeed.folderKey}'`);
219
+ const refusal = await feedReadRefusalAsync2(auth, selectedFeed.folderKey, `Reading a deployment by name in the feed '${selectedFeed.name ?? selectedFeed.folderKey}'`);
208
220
  if (refusal) {
209
- throw new FeedReadRefusedError(refusal);
221
+ throw new FeedReadRefusedError2(refusal);
210
222
  }
211
223
  }
212
- const [searchError, found2] = await catchError(locateDeploymentByNameAsync(auth, reference, options));
224
+ const [searchError, found] = await catchError(locateDeploymentByNameAsync(auth, reference, options));
213
225
  if (unreadableByApplication(searchError)) {
214
226
  return;
215
227
  }
216
228
  if (searchError) {
217
229
  throw searchError;
218
230
  }
219
- return found2 ? describeLocatedDeploymentAsync(auth, found2) : undefined;
231
+ return found ? describeLocatedDeploymentAsync(auth, found) : undefined;
220
232
  }
221
233
  }
222
234
  const found = await locateDeploymentByNameAsync(auth, reference, options);
@@ -232,12 +244,12 @@ function unreadableByApplication(error) {
232
244
  async function locateDeploymentByNameAsync(auth, reference, options) {
233
245
  const { selectedFeed } = options;
234
246
  if (selectedFeed) {
235
- const scope = feedScopeInitOverride(selectedFeed);
236
- const row = await findDeploymentByName(auth, reference, scope);
247
+ const scope = feedScopeInitOverride2(selectedFeed);
248
+ const row = await findDeploymentByName2(auth, reference, scope);
237
249
  return row ? {
238
250
  key: row.key,
239
251
  scope,
240
- feedSelector: feedSelectorFlag(selectedFeed)
252
+ feedSelector: feedSelectorFlag2(selectedFeed)
241
253
  } : undefined;
242
254
  }
243
255
  const { location, complete, skipped } = await findDeploymentAcrossFeeds(auth, reference, options.locate);
@@ -248,17 +260,15 @@ async function locateDeploymentByNameAsync(auth, reference, options) {
248
260
  return location ? {
249
261
  key: location.deployment.key,
250
262
  scope: location.scope,
251
- feedSelector: feedSelectorFlag(location.feed)
263
+ feedSelector: feedSelectorFlag2(location.feed)
252
264
  } : undefined;
253
265
  }
254
266
  function describeLocatedDeploymentAsync(auth, found) {
255
267
  return describeDeploymentByKeyAsync(auth, found.key, found.scope, found.feedSelector, "name");
256
268
  }
257
269
  export {
258
- IncompleteFeedSweepError,
259
270
  describeDeploymentAsync,
260
- describeDeploymentByKeyAsync,
261
271
  looksLikeDeploymentKey
262
272
  };
263
273
 
264
- //# debugId=C89A5DAFE069BA5A64756E2164756E21
274
+ //# debugId=CE22DB6EC2D5424664756E2164756E21
package/dist/deploy.js CHANGED
@@ -1,43 +1,41 @@
1
+ import"./packager-tool-vgrswa8p.js";
2
+ import"./packager-tool-m07vyk89.js";
3
+ import"./packager-tool-9vrwpgt3.js";
4
+ import"./packager-tool-t39pjz7n.js";
5
+ import"./packager-tool-ppj5f4y7.js";
6
+ import"./packager-tool-bs1jn1yn.js";
7
+ import"./packager-tool-a6va4gc5.js";
8
+ import"./packager-tool-vrtabg73.js";
9
+ import"./packager-tool-rj2d1g0w.js";
10
+ import"./packager-tool-w8bcwfd3.js";
11
+ import"./packager-tool-q8ryk6q9.js";
12
+ import"./packager-tool-fp46ebde.js";
13
+ import"./packager-tool-fqs6hdcy.js";
1
14
  import {
2
- deleteDeploymentAsync
3
- } from "./packager-tool-45a8fkw0.js";
15
+ deleteDeploymentAsync2
16
+ } from "./packager-tool-95y24705.js";
4
17
  import {
5
- deployRunAsync
6
- } from "./packager-tool-gyqfs04e.js";
18
+ deployRunAsync2
19
+ } from "./packager-tool-nrhqgr4z.js";
7
20
  import {
8
- activateDeploymentAsync,
9
- listDeploymentsAsync,
10
- listPackagesAsync,
11
- uninstallDeploymentAsync,
12
- upgradeDeploymentAsync
13
- } from "./packager-tool-f23a485e.js";
14
- import"./packager-tool-x1ah4eez.js";
15
- import"./packager-tool-1ybnxbp9.js";
16
- import"./packager-tool-cvf46scg.js";
17
- import"./packager-tool-2t72aez8.js";
18
- import"./packager-tool-act5r386.js";
19
- import"./packager-tool-9hsmn8th.js";
20
- import"./packager-tool-azre7mm1.js";
21
- import"./packager-tool-97rcgwvv.js";
22
- import"./packager-tool-tedbebpq.js";
23
- import"./packager-tool-qw47eyw7.js";
24
- import"./packager-tool-61pwb567.js";
25
- import"./packager-tool-8ptbmmmp.js";
26
- import"./packager-tool-5edvzz80.js";
27
- import"./packager-tool-43ahv5mn.js";
28
- import"./packager-tool-tx834spe.js";
29
- import"./packager-tool-6ybywxxn.js";
30
- import"./packager-tool-v1f5e8t9.js";
31
- import"./packager-tool-dfrk01gn.js";
32
- import"./packager-tool-1de529jm.js";
21
+ activateDeploymentAsync2,
22
+ listDeploymentsAsync2,
23
+ uninstallDeploymentAsync2,
24
+ upgradeDeploymentAsync2,
25
+ listPackagesAsync2
26
+ } from "./packager-tool-55ztfccd.js";
27
+ import"./packager-tool-snm6s7b5.js";
28
+ import"./packager-tool-q5d9df2q.js";
29
+ import"./packager-tool-wm0h0wa1.js";
30
+ import"./packager-tool-c64hqa8n.js";
33
31
  export {
34
- activateDeploymentAsync,
35
- deleteDeploymentAsync,
36
- deployRunAsync,
37
- listDeploymentsAsync,
38
- listPackagesAsync,
39
- uninstallDeploymentAsync,
40
- upgradeDeploymentAsync
32
+ activateDeploymentAsync2 as activateDeploymentAsync,
33
+ deleteDeploymentAsync2 as deleteDeploymentAsync,
34
+ deployRunAsync2 as deployRunAsync,
35
+ listDeploymentsAsync2 as listDeploymentsAsync,
36
+ listPackagesAsync2 as listPackagesAsync,
37
+ uninstallDeploymentAsync2 as uninstallDeploymentAsync,
38
+ upgradeDeploymentAsync2 as upgradeDeploymentAsync
41
39
  };
42
40
 
43
- //# debugId=077944B1F5E8A24064756E2164756E21
41
+ //# debugId=6FE8566BD193706464756E2164756E21
@@ -0,0 +1,54 @@
1
+ import {
2
+ readDeploymentByKeyAsync2,
3
+ findDeploymentByName2,
4
+ findLiveDeploymentByName2,
5
+ isCompletedUninstall2,
6
+ findDeploymentsByPackageName2,
7
+ DeploymentSearchCapError2,
8
+ findCurrentDeploymentAsync2,
9
+ blocksRedeploy2,
10
+ MAX_LISTED_DEPLOYMENTS2,
11
+ formatExistingDeployments2,
12
+ findDeploymentsByName2,
13
+ findDeploymentBestEffort2,
14
+ newestDeploymentRow2,
15
+ isPipelineDeploymentNotFoundError2,
16
+ interpretFailedDeployPoll2,
17
+ mapOperationStatusToPipelineStatus2,
18
+ deploymentToTerminalPipelineResult2,
19
+ resolveInstalledFolder2
20
+ } from "./packager-tool-w8bcwfd3.js";
21
+ import"./packager-tool-vrtabg73.js";
22
+ import"./packager-tool-bs1jn1yn.js";
23
+ import"./packager-tool-a6va4gc5.js";
24
+ import"./packager-tool-c64hqa8n.js";
25
+ import"./packager-tool-t39pjz7n.js";
26
+ import"./packager-tool-9vrwpgt3.js";
27
+ import {
28
+ httpStatusOf2
29
+ } from "./packager-tool-m07vyk89.js";
30
+ import"./packager-tool-vgrswa8p.js";
31
+ import"./packager-tool-rj2d1g0w.js";
32
+ export {
33
+ DeploymentSearchCapError2 as DeploymentSearchCapError,
34
+ MAX_LISTED_DEPLOYMENTS2 as MAX_LISTED_DEPLOYMENTS,
35
+ blocksRedeploy2 as blocksRedeploy,
36
+ deploymentToTerminalPipelineResult2 as deploymentToTerminalPipelineResult,
37
+ findCurrentDeploymentAsync2 as findCurrentDeploymentAsync,
38
+ findDeploymentBestEffort2 as findDeploymentBestEffort,
39
+ findDeploymentByName2 as findDeploymentByName,
40
+ findDeploymentsByName2 as findDeploymentsByName,
41
+ findDeploymentsByPackageName2 as findDeploymentsByPackageName,
42
+ findLiveDeploymentByName2 as findLiveDeploymentByName,
43
+ formatExistingDeployments2 as formatExistingDeployments,
44
+ httpStatusOf2 as httpStatusOf,
45
+ interpretFailedDeployPoll2 as interpretFailedDeployPoll,
46
+ isCompletedUninstall2 as isCompletedUninstall,
47
+ isPipelineDeploymentNotFoundError2 as isPipelineDeploymentNotFoundError,
48
+ mapOperationStatusToPipelineStatus2 as mapOperationStatusToPipelineStatus,
49
+ newestDeploymentRow2 as newestDeploymentRow,
50
+ readDeploymentByKeyAsync2 as readDeploymentByKeyAsync,
51
+ resolveInstalledFolder2 as resolveInstalledFolder
52
+ };
53
+
54
+ //# debugId=F88C220D75A0F90E64756E2164756E21