@uipath/solution-tool 1.205.0-preview.277 → 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-dwbrt6d9.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-xw2nzh7m.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-zckdhv0c.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-erd95bt1.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-d3cmmbw1.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-r1jvvm8y.js → packager-tool-55ztfccd.js} +176 -196
  33. package/dist/{packager-tool-wrg41m7t.js → packager-tool-95y24705.js} +37 -39
  34. package/dist/{packager-tool-bkjqza3a.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-hsya909c.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-qqbt4b44.js → packager-tool-pyt9fvty.js} +51 -48
  52. package/dist/packager-tool-q5d9df2q.js +74 -0
  53. package/dist/{packager-tool-ph7fg1aa.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-a4bs7wtm.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-f2hsb9ta.js → packager-tool-t3a48ys5.js} +305 -657
  61. package/dist/{packager-tool-cjjk2ek2.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-4pkzxkty.js → packager-tool-vx39dhvn.js} +65 -35
  66. package/dist/{packager-tool-zn76tbxc.js → packager-tool-w34wyhwf.js} +13 -15
  67. package/dist/packager-tool-w8bcwfd3.js +280 -0
  68. package/dist/{packager-tool-3gwrcgrc.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-6tyyvhh0.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-2g02d7s1.js → restore-command-service-n880dxre.js} +37 -34
  82. package/dist/{run-service-6necpy9s.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-7py597ng.js +0 -25
  102. package/dist/deploy-run-service-446bssn0.js +0 -25
  103. package/dist/deployment-search-qyd6dv0m.js +0 -55
  104. package/dist/feed-resolver-va10c73n.js +0 -28
  105. package/dist/feed-scope-failure-3yxfg1x7.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-8snbrbt1.js +0 -32
  109. package/dist/index-dqa169gp.js +0 -25
  110. package/dist/index-fcwmbjap.js +0 -667
  111. package/dist/index-prm27bvm.js +0 -138
  112. package/dist/node-9hdy9st1.js +0 -86
  113. package/dist/pack-command-service-tr3z33gz.js +0 -35
  114. package/dist/package-id-kdkapmn2.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-6d3fx89p.js +0 -171
  118. package/dist/packager-tool-d8ng7mex.js +0 -68
  119. package/dist/packager-tool-gdtpsdn7.js +0 -342
  120. package/dist/packager-tool-mq5pc4zr.js +0 -418
  121. package/dist/packager-tool-qw47eyw7.js +0 -43
  122. package/dist/packager-tool-resolver-994z3jkj.js +0 -23
  123. package/dist/packager-tool-rg3xgn9a.js +0 -182
  124. package/dist/packager-tool-sxjehksx.js +0 -5367
  125. package/dist/packager-tool-yrdyppjd.js +0 -188
  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
package/dist/resource.js CHANGED
@@ -1,20 +1,17 @@
1
+ import"./packager-tool-vgrswa8p.js";
2
+ import"./packager-tool-m07vyk89.js";
3
+ import"./packager-tool-9vrwpgt3.js";
4
+ import"./packager-tool-rj2d1g0w.js";
5
+ import"./packager-tool-a7s0gbxs.js";
1
6
  import {
2
- resourceRefreshAsync
3
- } from "./packager-tool-6kz1pv9f.js";
4
- import"./packager-tool-gdtpsdn7.js";
5
- import"./packager-tool-53w8skv5.js";
6
- import"./packager-tool-pbmqk39a.js";
7
- import"./packager-tool-61pwb567.js";
8
- import"./packager-tool-8ptbmmmp.js";
9
- import"./packager-tool-5edvzz80.js";
10
- import"./packager-tool-43ahv5mn.js";
11
- import"./packager-tool-tx834spe.js";
12
- import"./packager-tool-6ybywxxn.js";
13
- import"./packager-tool-v1f5e8t9.js";
14
- import"./packager-tool-dfrk01gn.js";
15
- import"./packager-tool-1de529jm.js";
7
+ resourceRefreshAsync2
8
+ } from "./packager-tool-d1texmvn.js";
9
+ import"./packager-tool-t39pjz7n.js";
10
+ import"./packager-tool-fp46ebde.js";
11
+ import"./packager-tool-ppj5f4y7.js";
12
+ import"./packager-tool-c64hqa8n.js";
16
13
  export {
17
- resourceRefreshAsync
14
+ resourceRefreshAsync2 as resourceRefreshAsync
18
15
  };
19
16
 
20
- //# debugId=769B19CBADFAADC064756E2164756E21
17
+ //# debugId=A2DA12E1A317592764756E2164756E21
@@ -1,41 +1,42 @@
1
1
  import {
2
- SOLUTION_PATH_INSTRUCTIONS,
3
- applyAuthConnection,
4
- checkSolutionPathAsync,
5
- createSolutionPackager,
6
- readSolutionFileAsUint8Array,
7
- resolveSdkLogLevel
8
- } from "./packager-tool-6tyyvhh0.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
9
4
  import {
10
- ensurePackagerTools,
11
- isUnpackableProjectTypeError
12
- } from "./packager-tool-b2nhscfk.js";
13
- import"./packager-tool-60af1hw2.js";
5
+ catchError,
6
+ carriedInstructions
7
+ } from "./packager-tool-m07vyk89.js";
14
8
  import {
15
- SolutionPackOptions
16
- } from "./packager-tool-bkjqza3a.js";
17
- import"./packager-tool-6d3fx89p.js";
18
- import"./packager-tool-yrdyppjd.js";
19
- import"./packager-tool-f2hsb9ta.js";
20
- import"./packager-tool-5ddtwzva.js";
9
+ RESULTS,
10
+ logger,
11
+ OutputFormatter
12
+ } from "./packager-tool-9vrwpgt3.js";
13
+ import"./packager-tool-rj2d1g0w.js";
21
14
  import {
22
15
  ToolResult
23
- } from "./packager-tool-pbmqk39a.js";
24
- import"./packager-tool-43ahv5mn.js";
16
+ } from "./packager-tool-a7s0gbxs.js";
25
17
  import {
26
- OutputFormatter,
27
- RESULTS,
28
- logger
29
- } 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";
30
23
  import {
31
- carriedInstructions,
32
- catchError
33
- } from "./packager-tool-6ybywxxn.js";
24
+ isUnpackableProjectTypeError2,
25
+ ensurePackagerTools2
26
+ } from "./packager-tool-wm8nj6e9.js";
34
27
  import {
35
- getFileSystem
36
- } from "./packager-tool-v1f5e8t9.js";
37
- import"./packager-tool-dfrk01gn.js";
38
- import"./packager-tool-1de529jm.js";
28
+ captureExtractedSolution2
29
+ } from "./packager-tool-f84z7nds.js";
30
+ import"./packager-tool-t39pjz7n.js";
31
+ import {
32
+ createProjectActivityObserver,
33
+ createSolutionPackager,
34
+ readSolutionFileAsUint8Array,
35
+ resolveSdkLogLevel,
36
+ applyAuthConnection,
37
+ SOLUTION_PATH_INSTRUCTIONS,
38
+ checkSolutionPathAsync
39
+ } from "./packager-tool-z5r49ky9.js";
39
40
 
40
41
  // src/services/restore-command-service.ts
41
42
  class RestoreCommandService {
@@ -73,11 +74,11 @@ Restoring solution dependencies...
73
74
  const msg = error instanceof Error ? error.message : String(error);
74
75
  OutputFormatter.error({
75
76
  Result: RESULTS.Failure,
76
- ...isUnpackableProjectTypeError(error) ? { ErrorCode: "invalid_argument" } : {},
77
+ ...isUnpackableProjectTypeError2(error) ? { ErrorCode: "invalid_argument" } : {},
77
78
  Message: msg,
78
79
  Instructions: carriedInstructions(error) ?? "Check that you are logged in (`uip auth login`) and that the solution path is accessible, then rerun: uip solution restore <solution-path>"
79
80
  });
80
- if (error instanceof Error && error.stack && !isUnpackableProjectTypeError(error)) {
81
+ if (error instanceof Error && error.stack && !isUnpackableProjectTypeError2(error)) {
81
82
  logger.error("Stack trace:");
82
83
  logger.error(error.stack);
83
84
  }
@@ -117,10 +118,11 @@ Restoring solution dependencies...
117
118
  if (isUisFile) {
118
119
  const uint8Array = await readSolutionFileAsUint8Array(this.fs, absoluteSolutionPath);
119
120
  inputPath = await packager.setupAsync(uint8Array);
121
+ await captureExtractedSolution2(options.telemetryCapture, inputPath);
120
122
  } else {
121
123
  inputPath = await packager.setupAsync(absoluteSolutionPath);
122
124
  }
123
- await ensurePackagerTools(inputPath, this.fs);
125
+ await ensurePackagerTools2(inputPath, this.fs);
124
126
  const restoreOptions = await this.createRestoreOptions(inputPath, solutionName, options);
125
127
  return packager.restoreSolutionAsync(restoreOptions);
126
128
  }
@@ -132,6 +134,7 @@ Restoring solution dependencies...
132
134
  }
133
135
  async createRestoreOptions(inputPath, solutionName, options) {
134
136
  const restoreOptions = new SolutionPackOptions;
137
+ restoreOptions.projectActivity = createProjectActivityObserver("uip solution restore");
135
138
  restoreOptions.inputPath = inputPath;
136
139
  restoreOptions.configuration = "Release" /* Release */;
137
140
  restoreOptions.excludeConfiguredSources = options.excludeConfiguredSources ?? false;
@@ -152,4 +155,4 @@ export {
152
155
  RestoreCommandService
153
156
  };
154
157
 
155
- //# debugId=B15EA9113DA4F34C64756E2164756E21
158
+ //# debugId=B91C307C08E41B4B64756E2164756E21
@@ -1,67 +1,129 @@
1
1
  import {
2
- ProjectRunner,
3
- RunResult,
4
- ensureExecutorFactory,
5
- executorsFactoryRepository
6
- } from "./packager-tool-kkfb5kgn.js";
2
+ getLoginStatusAsync
3
+ } from "./packager-tool-t39pjz7n.js";
7
4
  import {
8
- packSolutionAsync
9
- } from "./packager-tool-zn76tbxc.js";
10
- import"./packager-tool-qqbt4b44.js";
11
- import"./packager-tool-t8gh825q.js";
12
- import"./packager-tool-wy4fx250.js";
13
- import"./packager-tool-47wzvqw0.js";
14
- import"./packager-tool-6tyyvhh0.js";
15
- import"./packager-tool-b2nhscfk.js";
16
- import"./packager-tool-60af1hw2.js";
17
- import"./packager-tool-bkjqza3a.js";
18
- import"./packager-tool-6d3fx89p.js";
19
- import"./packager-tool-yrdyppjd.js";
20
- import"./packager-tool-f2hsb9ta.js";
21
- import"./packager-tool-5ddtwzva.js";
22
- import"./packager-tool-gs3f3tf7.js";
5
+ getFileSystem
6
+ } from "./packager-tool-vgrswa8p.js";
23
7
  import {
24
- publishSolutionAsync
25
- } from "./packager-tool-4pkzxkty.js";
8
+ ProjectDimensions,
9
+ solutionIdentityProperties,
10
+ projectKey,
11
+ PROJECT_IDENTITY_LOOKUP_BUDGET_MS,
12
+ withinProjectIdentityBudget,
13
+ catchError,
14
+ carriedInstructions,
15
+ isProjectTelemetryDisabled
16
+ } from "./packager-tool-m07vyk89.js";
26
17
  import {
27
- listSelectablePublishLocations
28
- } from "./packager-tool-rg3xgn9a.js";
29
- import"./packager-tool-97rcgwvv.js";
18
+ logger,
19
+ processContext,
20
+ PollOutcome,
21
+ pollUntil
22
+ } from "./packager-tool-9vrwpgt3.js";
30
23
  import {
31
- getProjectDebugStatus,
32
- isDebugProvisioningSucceeded,
33
- isDebugProvisioningTerminal
34
- } from "./packager-tool-sxjehksx.js";
35
- import"./packager-tool-qw47eyw7.js";
24
+ RunResult,
25
+ executorsFactoryRepository,
26
+ ensureExecutorFactory,
27
+ ProjectRunner
28
+ } from "./packager-tool-vrqbbh01.js";
29
+ import"./packager-tool-a6va4gc5.js";
36
30
  import {
37
- createResourceBuilderServices
38
- } from "./packager-tool-6kz1pv9f.js";
39
- import"./packager-tool-gdtpsdn7.js";
40
- import"./packager-tool-53w8skv5.js";
41
- import"./packager-tool-pbmqk39a.js";
31
+ isDebugProvisioningTerminal2,
32
+ isDebugProvisioningSucceeded2,
33
+ getProjectDebugStatus2
34
+ } from "./packager-tool-vrtabg73.js";
35
+ import"./packager-tool-rj2d1g0w.js";
42
36
  import {
43
- getSolutionAuthContext
44
- } from "./packager-tool-61pwb567.js";
45
- import"./packager-tool-8ptbmmmp.js";
46
- import"./packager-tool-5edvzz80.js";
37
+ getSolutionAuthContext2
38
+ } from "./packager-tool-ppj5f4y7.js";
39
+ import"./packager-tool-a7s0gbxs.js";
47
40
  import {
48
- getLoginStatusAsync
49
- } from "./packager-tool-43ahv5mn.js";
41
+ createResourceBuilderServices2
42
+ } from "./packager-tool-d1texmvn.js";
43
+ import"./packager-tool-fp46ebde.js";
44
+ import"./packager-tool-9j8e5q1z.js";
45
+ import"./packager-tool-t3a48ys5.js";
46
+ import"./packager-tool-aws5w512.js";
47
+ import"./packager-tool-ca5ngmqv.js";
48
+ import"./packager-tool-qzcd5c9s.js";
49
+ import"./packager-tool-wm8nj6e9.js";
50
+ import"./packager-tool-yetmzme9.js";
51
+ import"./packager-tool-qf8753ee.js";
52
+ import"./packager-tool-f84z7nds.js";
53
+ import"./packager-tool-pyt9fvty.js";
54
+ import"./packager-tool-bs1jn1yn.js";
50
55
  import {
51
- PollOutcome,
52
- logger,
53
- pollUntil,
54
- processContext
55
- } from "./packager-tool-tx834spe.js";
56
+ listSelectablePublishLocations
57
+ } from "./packager-tool-fqs6hdcy.js";
56
58
  import {
57
- carriedInstructions,
58
- catchError
59
- } from "./packager-tool-6ybywxxn.js";
59
+ publishSolutionAsync2
60
+ } from "./packager-tool-vx39dhvn.js";
60
61
  import {
61
- getFileSystem
62
- } from "./packager-tool-v1f5e8t9.js";
63
- import"./packager-tool-dfrk01gn.js";
64
- import"./packager-tool-1de529jm.js";
62
+ packSolutionAsync2
63
+ } from "./packager-tool-w34wyhwf.js";
64
+ import"./packager-tool-z5r49ky9.js";
65
+ import"./packager-tool-1ctvbx0h.js";
66
+ import {
67
+ toPortableRelativePath2,
68
+ findSolutionFileUpward
69
+ } from "./packager-tool-c64hqa8n.js";
70
+
71
+ // ../solution-sdk/src/project-context.ts
72
+ function record(value) {
73
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined;
74
+ }
75
+ async function readProjectSolutionContext(projectDirectory, fs = getFileSystem()) {
76
+ try {
77
+ const selected = fs.path.resolve(projectDirectory);
78
+ const selectedStat = await fs.stat(selected);
79
+ if (!selectedStat?.isDirectory() && !selectedStat?.isFile())
80
+ return;
81
+ const selectedDirectory = selectedStat.isDirectory() ? selected : fs.path.dirname(selected);
82
+ const directory = await fs.realpath(selectedDirectory);
83
+ const file = await findSolutionFileUpward(fs, selectedDirectory);
84
+ const stat = await fs.stat(file);
85
+ if (!stat?.isFile() || stat.size > 1024 * 1024)
86
+ return;
87
+ const manifest = record(JSON.parse(await fs.readFile(file, "utf-8") ?? ""));
88
+ if (typeof manifest?.SolutionId !== "string" || !manifest.SolutionId.trim() || !Array.isArray(manifest.Projects))
89
+ return;
90
+ if (!projectKey(manifest.SolutionId))
91
+ return;
92
+ const members = [];
93
+ for (const value of manifest.Projects) {
94
+ const member = record(value);
95
+ if (typeof member?.ProjectRelativePath !== "string" || !member.ProjectRelativePath.trim())
96
+ continue;
97
+ const relative = toPortableRelativePath2(member.ProjectRelativePath);
98
+ if (fs.path.isAbsolute(relative) || /^[a-z]:/i.test(relative))
99
+ continue;
100
+ const candidate = fs.path.resolve(fs.path.dirname(file), fs.path.dirname(relative));
101
+ if (!(await fs.stat(candidate))?.isDirectory())
102
+ continue;
103
+ if (await fs.realpath(candidate) !== directory)
104
+ continue;
105
+ if (selectedStat.isFile() && await fs.realpath(selected) !== await fs.realpath(fs.path.resolve(fs.path.dirname(file), relative)))
106
+ continue;
107
+ if (typeof member.Id !== "string" || !member.Id.trim())
108
+ return;
109
+ if (!projectKey(member.Id))
110
+ return;
111
+ members.push(member.Id);
112
+ }
113
+ if (members.length !== 1)
114
+ return;
115
+ return {
116
+ ...solutionIdentityProperties({
117
+ id: manifest.SolutionId,
118
+ status: "resolved"
119
+ }),
120
+ [ProjectDimensions.SolutionProjectKey]: projectKey(members[0])
121
+ };
122
+ } catch (error) {
123
+ logger.debug(`[project-context] solution context skipped: ${error instanceof Error ? error.message : String(error)}`);
124
+ return;
125
+ }
126
+ }
65
127
 
66
128
  // src/services/executor-tool-resolver.ts
67
129
  var PROJECT_TYPE_TO_TOOL = new Map([
@@ -130,22 +192,22 @@ function nextDebugVersion() {
130
192
  return `1.0.${Math.floor(Date.now() / 1000)}`;
131
193
  }
132
194
  async function defaultGetSolutionBuilder(solutionDir) {
133
- const services = await createResourceBuilderServices();
195
+ const services = await createResourceBuilderServices2();
134
196
  return services.getSolutionBuilder(solutionDir, true);
135
197
  }
136
198
  async function provisionSolutionForDebugAsync(options, deps = {}) {
137
199
  const listLocations = deps.listLocations ?? listSelectablePublishLocations;
138
- const pack = deps.pack ?? packSolutionAsync;
139
- const publish = deps.publish ?? publishSolutionAsync;
200
+ const pack = deps.pack ?? packSolutionAsync2;
201
+ const publish = deps.publish ?? publishSolutionAsync2;
140
202
  const getBuilder = deps.getSolutionBuilder ?? defaultGetSolutionBuilder;
141
203
  const newSessionId = deps.newSessionId ?? (() => crypto.randomUUID());
142
204
  const authOptions = {
143
205
  tenant: options.tenant,
144
206
  loginValidity: options.loginValidity
145
207
  };
146
- const getDebugStatus = deps.getDebugStatus ?? (async (solutionKey2, debugSessionId) => {
147
- const auth = await getSolutionAuthContext(authOptions);
148
- return getProjectDebugStatus({ basePath: auth.basePath, accessToken: auth.accessToken }, solutionKey2, debugSessionId);
208
+ const getDebugStatus = deps.getDebugStatus ?? (async (solutionKey, debugSessionId) => {
209
+ const auth = await getSolutionAuthContext2(authOptions);
210
+ return getProjectDebugStatus2({ basePath: auth.basePath, accessToken: auth.accessToken }, solutionKey, debugSessionId);
149
211
  });
150
212
  logger.info("Resolving the personal workspace to deploy into...");
151
213
  const [locationsError, locations] = await catchError(listLocations(authOptions));
@@ -270,8 +332,8 @@ async function waitForProvisioningAsync(args) {
270
332
  logger.info("Waiting for the cloud to finish provisioning...");
271
333
  const poll = await pollUntil({
272
334
  fn: () => args.getDebugStatus(solutionKey, sessionId),
273
- until: (info2) => isDebugProvisioningTerminal(info2.status),
274
- getStatus: (info2) => info2.status ?? "pending",
335
+ until: (info) => isDebugProvisioningTerminal2(info.status),
336
+ getStatus: (info) => info.status ?? "pending",
275
337
  label: `solution provisioning (session ${sessionId})`,
276
338
  logPrefix: "provision",
277
339
  timeoutMs,
@@ -283,7 +345,7 @@ async function waitForProvisioningAsync(args) {
283
345
  return fail(describeIncompleteWait(poll, timeoutMs));
284
346
  }
285
347
  const info = poll.data;
286
- if (!isDebugProvisioningSucceeded(info.status)) {
348
+ if (!isDebugProvisioningSucceeded2(info.status)) {
287
349
  const details = (info.errors ?? []).map((error) => error.resource ? `${error.resource.kind ?? "resource"} '${error.resource.name ?? error.resource.key ?? ""}': ${error.message}` : error.message).join(`
288
350
  `);
289
351
  return fail(`Provisioning the solution failed (${info.status}).` + (details ? `
@@ -304,6 +366,21 @@ function describeIncompleteWait(poll, timeoutMs) {
304
366
  }
305
367
 
306
368
  // src/services/run-service.ts
369
+ async function captureRunMember(capture, projectPath, fileSystem) {
370
+ if (!capture || isProjectTelemetryDisabled())
371
+ return;
372
+ const [error, context] = await catchError(withinProjectIdentityBudget(readProjectSolutionContext(projectPath, fileSystem), () => logger.debug(`Run member telemetry skipped: no answer within ${PROJECT_IDENTITY_LOOKUP_BUDGET_MS} ms`)));
373
+ if (error) {
374
+ logger.debug(`Run member telemetry skipped: ${error.message}`);
375
+ return;
376
+ }
377
+ if (!context)
378
+ return;
379
+ const [captureError] = catchError(() => capture.setProperties?.(context));
380
+ if (captureError) {
381
+ logger.debug(`Run member telemetry skipped: ${captureError.message}`);
382
+ }
383
+ }
307
384
  async function runSolutionAsync(options, deps, cancellationToken) {
308
385
  const { fileSystem } = deps;
309
386
  const solutionDir = fileSystem.path.resolve(options.solutionPath);
@@ -320,6 +397,7 @@ async function runSolutionAsync(options, deps, cancellationToken) {
320
397
  if (selectionError) {
321
398
  return RunResult.failed("InvalidInput" /* InvalidInput */, selectionError);
322
399
  }
400
+ const projectPath = fileSystem.path.resolve(solutionDir, selected.relativePath);
323
401
  const provision = deps.provisionForDebug ?? provisionSolutionForDebugAsync;
324
402
  const shouldProvision = options.provisionResources ?? projects.length > 1;
325
403
  const [executorOutcome, provisionOutcome] = await Promise.allSettled([
@@ -331,6 +409,7 @@ async function runSolutionAsync(options, deps, cancellationToken) {
331
409
  loginValidity: options.loginValidity
332
410
  }) : Promise.resolve(undefined)
333
411
  ]);
412
+ await captureRunMember(deps.telemetryCapture, projectPath, fileSystem);
334
413
  if (executorOutcome.status === "rejected") {
335
414
  return RunResult.failed("PrepareFailed" /* PrepareFailed */, `Could not load the runner for project type '${selected.projectType}': ${describeError(executorOutcome.reason)}`);
336
415
  }
@@ -345,7 +424,6 @@ async function runSolutionAsync(options, deps, cancellationToken) {
345
424
  }
346
425
  folderPath = provisioned.folderPath;
347
426
  }
348
- const projectPath = fileSystem.path.resolve(solutionDir, selected.relativePath);
349
427
  logger.debug(`Running '${selected.name}' (${selected.projectType}) from ${projectPath}` + `${options.entryPoint ? ` with entry point ${options.entryPoint}` : " with its default entry point"}`);
350
428
  const connection = await resolveConnection(folderPath, options, deps);
351
429
  const runner = new ProjectRunner({
@@ -375,8 +453,8 @@ async function resolveConnection(folderPath, options, deps) {
375
453
  const [loginError, status] = await catchError(getLoginStatus({
376
454
  ensureTokenValidityMinutes: options.loginValidity
377
455
  }));
378
- if (loginError || status.loginStatus !== "Logged in") {
379
- logger.debug(`No signed-in session for the run: ${loginError?.message ?? status.loginStatus}. ` + "A project type that needs one will say so.");
456
+ if (loginError || status?.loginStatus !== "Logged in") {
457
+ logger.debug(`No signed-in session for the run: ${loginError?.message ?? status?.loginStatus}. ` + "A project type that needs one will say so.");
380
458
  return {
381
459
  folderPath,
382
460
  baseUrl: "",
@@ -425,4 +503,4 @@ export {
425
503
  runSolutionAsync
426
504
  };
427
505
 
428
- //# debugId=56CE2FF893D2961664756E2164756E21
506
+ //# debugId=3213A95BB650FE5564756E2164756E21
@@ -46,7 +46,8 @@ export interface ActivateDeploymentFailure {
46
46
  * Set only when the service knows better than the formatter's guess from
47
47
  * the message: a refused feed selection, or a refusal that followed a
48
48
  * feed sweep which could not ask every feed (the sweep's classification
49
- * for a refusal about the name or feed, the request's own for any other).
49
+ * for a refusal about the name or feed, the request's own for any other),
50
+ * or a poll that timed out or gave up on an error.
50
51
  * Absent everywhere else, as before.
51
52
  */
52
53
  errorCode?: CliErrorCode;
@@ -4,4 +4,5 @@
4
4
  * Re-exported here so this package's callers, and the specs that mock this
5
5
  * module, keep one local path to it.
6
6
  */
7
- export { DeploymentSearchNeedsUserSessionError, searchDeploymentsPage, } from "@uipath/solution-sdk/deployments";
7
+ export type { FeedProbeRoute } from "@uipath/solution-sdk/deployments";
8
+ export { APPLIED_FEED_HEADER, DeploymentSearchNeedsUserSessionError, DeploymentSearchTruncatedError, probeFeedHeaderAsync, searchDeploymentsPage, } from "@uipath/solution-sdk/deployments";
@@ -1,6 +1,8 @@
1
+ import { type CliErrorCode, type RetryHint } from "@uipath/common";
1
2
  import { type PipelineDeploymentResult, type PipelineDeploymentStatus } from "@uipath/pipelines-sdk";
2
3
  import type { DeploymentOperationStatus, DeploymentSearchItemDto2, InitOverrideFunction } from "@uipath/solution-sdk";
3
4
  import type { SolutionAuthContext } from "@uipath/solution-sdk/auth";
5
+ import { DeploymentSearchTruncatedError } from "./deployment-search-client";
4
6
  export { httpStatusOf } from "./http-status";
5
7
  /** A deployment read by key: the fields the callers act on, from either route. */
6
8
  export interface DeploymentByKey {
@@ -106,6 +108,43 @@ export declare function findDeploymentsByPackageName(auth: SolutionAuthContext,
106
108
  folderPath?: string;
107
109
  scope?: InitOverrideFunction;
108
110
  }): Promise<DeploymentSearchItemDto2[]>;
111
+ /** Which filter a capped search was walking, and its value. */
112
+ interface DeploymentSearchWalk {
113
+ by: "packageName" | "deploymentName";
114
+ term: string;
115
+ /** Rows read before giving up; a multiple of {@link SEARCH_PAGE_SIZE}. */
116
+ cap: number;
117
+ }
118
+ /**
119
+ * A deployment search stopped at its row cap with rows still unread, so the
120
+ * rows it found may not be all of them. Thrown instead of returning that
121
+ * partial list as if it were complete: "nothing found" and "could not read
122
+ * everything" must not look the same to a caller (the redeploy guard, the
123
+ * current-record check).
124
+ *
125
+ * A {@link DeploymentSearchTruncatedError} (`reason: "page-cap"`), so code that
126
+ * knows the SDK's error keeps recognising it. Carries `errorCode`, `retry` and
127
+ * `instructions`, the fields `carriedErrorCode` / `carriedRetry` /
128
+ * `carriedInstructions` read. `server_error`, as vertical-solutions-tool
129
+ * classifies the SDK's own truncated search: the service's history could not
130
+ * be read in full. `RetryWillNotFix`: a retry walks the same rows to the same
131
+ * cap.
132
+ *
133
+ * `partialRows` holds the matching rows read before the cap. They are real
134
+ * rows, just not all of them: a caller may act on what they show (a row that
135
+ * blocks a redeploy blocks it), never on what they leave out.
136
+ */
137
+ export declare class DeploymentSearchCapError extends DeploymentSearchTruncatedError {
138
+ readonly name = "DeploymentSearchCapError";
139
+ readonly search: DeploymentSearchWalk["by"];
140
+ readonly term: string;
141
+ readonly cap: number;
142
+ readonly partialRows: readonly DeploymentSearchItemDto2[];
143
+ readonly errorCode: CliErrorCode;
144
+ readonly retry: RetryHint;
145
+ readonly instructions = "Check the deployments in Orchestrator (Tenant > Solutions > Deployments), which is not limited by this cap.";
146
+ constructor(walk: DeploymentSearchWalk, partialRows: readonly DeploymentSearchItemDto2[]);
147
+ }
109
148
  /**
110
149
  * The record that stands for a deployment *now*.
111
150
  *
@@ -1,6 +1,6 @@
1
1
  import { type CliErrorCode, type ErrorContext, type RetryHint } from "@uipath/common";
2
2
  import type { InitOverrideFunction } from "@uipath/solution-sdk";
3
- import type { SolutionAuthContext } from "@uipath/solution-sdk/auth";
3
+ import { type SolutionAuthContext } from "@uipath/solution-sdk/auth";
4
4
  /** Which feed a publish/deploy/query is scoped to. */
5
5
  export type FeedKind = "tenant" | "personal" | "folder";
6
6
  export interface FeedScope {
@@ -75,3 +75,15 @@ export declare function describeFeedResolutionFailureAsync(error: unknown, optio
75
75
  * we never send a raw, unvalidated key to an upload/deploy/query.
76
76
  */
77
77
  export declare function resolveFeedScope(options: ResolveFeedScopeOptions): Promise<FeedScope>;
78
+ /**
79
+ * An external app's `--feed` that neither the listing nor the Orchestrator
80
+ * folder lookup could resolve. Carries the listing's status so the envelope
81
+ * classifies it as `permission_denied`; `describeFeedResolutionFailureAsync`
82
+ * writes the ways out.
83
+ */
84
+ export declare class ApplicationFeedResolutionError extends Error {
85
+ readonly feed: string;
86
+ readonly status: number;
87
+ readonly name = "ApplicationFeedResolutionError";
88
+ constructor(feed: string, status: number, reason: string);
89
+ }
@@ -36,12 +36,15 @@ export type FeedSelection =
36
36
  * search. Either way it is never a search per feed.
37
37
  *
38
38
  * These commands mutate, so a non-tenant feed fails **closed** on any session
39
- * that is not shown to be a user's, like `deploy run`: the server ignores the
40
- * feed header on client-credentials requests, and the request would act on a
41
- * tenant deployment of the same name. A Personal Workspace is refused before
42
- * it is resolved; a `--feed` after, and only when it is not the tenant feed.
39
+ * not shown to be honoured there, like `deploy run`: an older server ignores
40
+ * the feed header on client-credentials requests, and the request would act on
41
+ * a tenant deployment of the same name. A user is always honoured; an external
42
+ * app is when the server shows it applies the header to apps
43
+ * (`feedSessionRefusalAsync`); a session of unknown kind never is. A Personal
44
+ * Workspace is refused to any non-user before it is resolved (an app has none
45
+ * of its own); a `--feed` after, and only when it is not the tenant feed.
43
46
  * A flag naming the tenant feed is still a selection: the tenant alone.
44
47
  *
45
48
  * @param action what the command does, e.g. "Uninstalling a deployment"
46
49
  */
47
- export declare function resolveFeedSelectionAsync(auth: Pick<SolutionAuthContext, "accessToken" | "identity">, flags: FeedSelectionFlags, action: string): Promise<FeedSelection>;
50
+ export declare function resolveFeedSelectionAsync(auth: Pick<SolutionAuthContext, "accessToken" | "identity" | "basePath">, flags: FeedSelectionFlags, action: string): Promise<FeedSelection>;
@@ -1,4 +1,6 @@
1
1
  import { type SessionIdentity } from "@uipath/auth";
2
+ import type { SolutionAuthContext } from "@uipath/solution-sdk/auth";
3
+ import type { FeedProbeRoute } from "./deployment-search-client";
2
4
  /** What the access token says about who is acting, as far as a feed is concerned. */
3
5
  export type FeedSessionVerdict = "user" | "application" | "unknown";
4
6
  /**
@@ -68,3 +70,35 @@ export declare class FeedReadRefusedError extends Error {
68
70
  instructions: string;
69
71
  });
70
72
  }
73
+ /** The session fields a feed decision reads; the probe also needs the server. */
74
+ type FeedSession = Pick<SolutionAuthContext, "accessToken" | "identity" | "basePath">;
75
+ /**
76
+ * Whether this session may make a request scoped to the feed `folderKey`, or
77
+ * the refusal. A user may. An external app may when the server shows it
78
+ * applies the feed header to client-credentials requests
79
+ * ({@link probeFeedHeaderAsync}: one single-row search, remembered for the
80
+ * process) — the support that lets an app's OAuth scope cover folder feeds. A
81
+ * session of unknown kind may only read (`kind: "read"`), as before: a wrong
82
+ * read is the worst it gets, while a write could land in the tenant feed.
83
+ *
84
+ * Personal Workspace flags are not decided here: an external app has none of
85
+ * its own, so callers keep refusing `--personal-workspace` up front.
86
+ *
87
+ * @param route the search the probe sends — the one the caller's own command
88
+ * uses, so the question needs no scope the command does not
89
+ * ({@link FeedProbeRoute}); package commands pass `"packages"`.
90
+ */
91
+ export declare function feedSessionRefusalAsync(session: FeedSession, folderKey: string, kind: "read" | "write", action: string, alternative: string, route?: FeedProbeRoute): Promise<{
92
+ message: string;
93
+ instructions: string;
94
+ } | undefined>;
95
+ /**
96
+ * {@link feedReadRefusalForApplication} for a resolved non-tenant feed: an
97
+ * external app may read it on a server that shows it applies the feed header
98
+ * to apps. Without a key there is nothing to ask, so the old rule stands.
99
+ */
100
+ export declare function feedReadRefusalAsync(session: FeedSession, folderKey: string | undefined, action: string, route?: FeedProbeRoute): Promise<{
101
+ message: string;
102
+ instructions: string;
103
+ } | undefined>;
104
+ export {};