@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.
- package/dist/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
- package/dist/{cleanup-command-service-je9d70vv.js → cleanup-command-service-ejakyhea.js} +34 -31
- package/dist/deploy-delete-service-r7abfh28.js +23 -0
- package/dist/deploy-run-service-rnthz10q.js +23 -0
- package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-6my5vm61.js} +72 -62
- package/dist/deploy.js +35 -37
- package/dist/deployment-search-gfm907tx.js +54 -0
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/feed-resolver-14crsx5y.js +27 -0
- package/dist/feed-scope-failure-67cyybn0.js +20 -0
- package/dist/feed-session-g94q2bjc.js +23 -0
- package/dist/first-party-service-n3vva2m4.js +8 -0
- package/dist/governance-options-t20vsznh.js +19 -0
- package/dist/index-aspmac9f.js +24 -0
- package/dist/index-ddk6v1ej.js +60 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-qq4kre7a.js +93 -0
- package/dist/index-t262f2xv.js +16 -0
- package/dist/index.js +33 -34
- package/dist/init.js +18 -21
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{list-5fke71jn.js → list-jntan9tx.js} +23 -23
- package/dist/models/pack-command-types.d.ts +3 -1
- package/dist/node-kwzcw5ex.js +25 -0
- package/dist/pack-command-service-pwaeha7y.js +29 -0
- package/dist/{pack-project-ha0pxw3h.js → pack-project-ztt1hfrs.js} +33 -40
- package/dist/pack.js +26 -30
- package/dist/package-id-4tsg5jsb.js +11 -0
- package/dist/{packager-tool-4pa108k7.js → packager-tool-1bz9h5ca.js} +11 -11
- package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
- package/dist/{packager-tool-f23a485e.js → packager-tool-55ztfccd.js} +176 -196
- package/dist/{packager-tool-45a8fkw0.js → packager-tool-95y24705.js} +37 -39
- package/dist/{packager-tool-2vmz56qh.js → packager-tool-9j8e5q1z.js} +184 -33
- package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
- package/dist/packager-tool-a6va4gc5.js +1178 -0
- package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
- package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
- package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
- package/dist/packager-tool-c64hqa8n.js +106 -0
- package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
- package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/packager-tool-f84z7nds.js +130 -0
- package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
- package/dist/packager-tool-fqs6hdcy.js +290 -0
- package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
- package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
- package/dist/{packager-tool-gyqfs04e.js → packager-tool-nrhqgr4z.js} +273 -255
- package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
- package/dist/{packager-tool-d78ww4hb.js → packager-tool-pyt9fvty.js} +51 -48
- package/dist/packager-tool-q5d9df2q.js +74 -0
- package/dist/{packager-tool-cvf46scg.js → packager-tool-q8ryk6q9.js} +122 -89
- package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
- package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
- package/dist/packager-tool-resolver-td3bhccd.js +20 -0
- package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
- package/dist/{packager-tool-2t72aez8.js → packager-tool-snm6s7b5.js} +15 -15
- package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
- package/dist/{packager-tool-wm0jaz7p.js → packager-tool-t3a48ys5.js} +305 -657
- package/dist/{packager-tool-dnrk1gg6.js → packager-tool-t3ahzjh1.js} +356 -298
- package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/packager-tool-vrtabg73.js +2307 -0
- package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
- package/dist/{packager-tool-h1tq7bqf.js → packager-tool-vx39dhvn.js} +65 -35
- package/dist/{packager-tool-5qzgdb66.js → packager-tool-w34wyhwf.js} +13 -15
- package/dist/packager-tool-w8bcwfd3.js +280 -0
- package/dist/{packager-tool-1ybnxbp9.js → packager-tool-wm0h0wa1.js} +18 -18
- package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
- package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
- package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
- package/dist/{packager-tool-056k8w2f.js → packager-tool-z5r49ky9.js} +75 -9
- package/dist/packager-tool.js +6 -7
- package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
- package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
- package/dist/project-contributions-kh9yftvg.js +27 -0
- package/dist/publish.js +17 -17
- package/dist/resource-mutations-mfn5k1hb.js +27 -0
- package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
- package/dist/resource.js +13 -16
- package/dist/{restore-command-service-pzpet021.js → restore-command-service-n880dxre.js} +37 -34
- package/dist/{run-service-hk8w2h31.js → run-service-4vhn6mtb.js} +144 -66
- package/dist/services/deploy-activate-service.d.ts +2 -1
- package/dist/services/deployment-search-client.d.ts +2 -1
- package/dist/services/deployment-search.d.ts +39 -0
- package/dist/services/feed-resolver.d.ts +13 -1
- package/dist/services/feed-selection.d.ts +8 -5
- package/dist/services/feed-session.d.ts +34 -0
- package/dist/services/install-run.d.ts +92 -0
- package/dist/services/prepare-solution-resources.d.ts +11 -2
- package/dist/services/project-contributions.d.ts +2 -0
- package/dist/services/project-identity-telemetry.d.ts +3 -0
- package/dist/services/publish-service.d.ts +20 -3
- package/dist/services/solution-identity.d.ts +18 -0
- package/dist/ship-telemetry-bkf3800w.js +16 -0
- package/dist/solution-auth-jxcgd2m0.js +10 -0
- package/dist/solution-identity-92h2fbpa.js +19 -0
- package/dist/templates/AGENTS.md +27 -29
- package/dist/tool.js +32 -33
- package/package.json +2 -2
- package/dist/deploy-delete-service-0tm600d1.js +0 -25
- package/dist/deploy-run-service-hne5w17k.js +0 -25
- package/dist/deployment-search-32zvxn35.js +0 -55
- package/dist/feed-resolver-pdeb4wkq.js +0 -28
- package/dist/feed-scope-failure-4baame72.js +0 -19
- package/dist/feed-session-7xqphdrg.js +0 -17
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/governance-options-bqgv5fte.js +0 -32
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-prm27bvm.js +0 -138
- package/dist/index-wdndcwab.js +0 -667
- package/dist/node-v7xhqwe2.js +0 -86
- package/dist/pack-command-service-b1v9c8cw.js +0 -35
- package/dist/package-id-rpzgy31w.js +0 -13
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-5edvzz80.js +0 -543
- package/dist/packager-tool-99jaqabz.js +0 -171
- package/dist/packager-tool-9hsmn8th.js +0 -418
- package/dist/packager-tool-azre7mm1.js +0 -182
- package/dist/packager-tool-fn13r8e1.js +0 -188
- package/dist/packager-tool-gdtpsdn7.js +0 -342
- package/dist/packager-tool-qw47eyw7.js +0 -43
- package/dist/packager-tool-resolver-994z3jkj.js +0 -23
- package/dist/packager-tool-tedbebpq.js +0 -5367
- package/dist/packager-tool-x1ah4eez.js +0 -68
- package/dist/prepare-solution-resources-m1djfj62.js +0 -29
- package/dist/project-contributions-79ndycrx.js +0 -32
- package/dist/resource-mutations-c3krjqze.js +0 -36
- package/dist/ship-telemetry-myes7ak5.js +0 -21
- package/dist/solution-auth-aead70sw.js +0 -11
- /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
- /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
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
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=
|
|
17
|
+
//# debugId=A2DA12E1A317592764756E2164756E21
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
} from "./packager-tool-
|
|
13
|
-
import"./packager-tool-60af1hw2.js";
|
|
5
|
+
catchError,
|
|
6
|
+
carriedInstructions
|
|
7
|
+
} from "./packager-tool-m07vyk89.js";
|
|
14
8
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import"./packager-tool-
|
|
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-
|
|
24
|
-
import"./packager-tool-43ahv5mn.js";
|
|
16
|
+
} from "./packager-tool-a7s0gbxs.js";
|
|
25
17
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
} from "./packager-tool-
|
|
24
|
+
isUnpackableProjectTypeError2,
|
|
25
|
+
ensurePackagerTools2
|
|
26
|
+
} from "./packager-tool-wm8nj6e9.js";
|
|
34
27
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./packager-tool-
|
|
37
|
-
import"./packager-tool-
|
|
38
|
-
import
|
|
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
|
-
...
|
|
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 && !
|
|
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
|
|
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=
|
|
158
|
+
//# debugId=B91C307C08E41B4B64756E2164756E21
|
|
@@ -1,67 +1,129 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ensureExecutorFactory,
|
|
5
|
-
executorsFactoryRepository
|
|
6
|
-
} from "./packager-tool-kkfb5kgn.js";
|
|
2
|
+
getLoginStatusAsync
|
|
3
|
+
} from "./packager-tool-t39pjz7n.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./packager-tool-
|
|
10
|
-
import"./packager-tool-d78ww4hb.js";
|
|
11
|
-
import"./packager-tool-t8gh825q.js";
|
|
12
|
-
import"./packager-tool-wy4fx250.js";
|
|
13
|
-
import"./packager-tool-47wzvqw0.js";
|
|
14
|
-
import"./packager-tool-056k8w2f.js";
|
|
15
|
-
import"./packager-tool-b2nhscfk.js";
|
|
16
|
-
import"./packager-tool-60af1hw2.js";
|
|
17
|
-
import"./packager-tool-2vmz56qh.js";
|
|
18
|
-
import"./packager-tool-99jaqabz.js";
|
|
19
|
-
import"./packager-tool-fn13r8e1.js";
|
|
20
|
-
import"./packager-tool-wm0jaz7p.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
|
-
|
|
25
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
logger,
|
|
19
|
+
processContext,
|
|
20
|
+
PollOutcome,
|
|
21
|
+
pollUntil
|
|
22
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
30
23
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
RunResult,
|
|
25
|
+
executorsFactoryRepository,
|
|
26
|
+
ensureExecutorFactory,
|
|
27
|
+
ProjectRunner
|
|
28
|
+
} from "./packager-tool-vrqbbh01.js";
|
|
29
|
+
import"./packager-tool-a6va4gc5.js";
|
|
36
30
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
import"./packager-tool-
|
|
31
|
+
isDebugProvisioningTerminal2,
|
|
32
|
+
isDebugProvisioningSucceeded2,
|
|
33
|
+
getProjectDebugStatus2
|
|
34
|
+
} from "./packager-tool-vrtabg73.js";
|
|
35
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
42
36
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./packager-tool-
|
|
45
|
-
import"./packager-tool-
|
|
46
|
-
import"./packager-tool-5edvzz80.js";
|
|
37
|
+
getSolutionAuthContext2
|
|
38
|
+
} from "./packager-tool-ppj5f4y7.js";
|
|
39
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
47
40
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./packager-tool-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
pollUntil,
|
|
54
|
-
processContext
|
|
55
|
-
} from "./packager-tool-tx834spe.js";
|
|
56
|
+
listSelectablePublishLocations
|
|
57
|
+
} from "./packager-tool-fqs6hdcy.js";
|
|
56
58
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} from "./packager-tool-6ybywxxn.js";
|
|
59
|
+
publishSolutionAsync2
|
|
60
|
+
} from "./packager-tool-vx39dhvn.js";
|
|
60
61
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./packager-tool-
|
|
63
|
-
import"./packager-tool-
|
|
64
|
-
import"./packager-tool-
|
|
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
|
|
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 ??
|
|
139
|
-
const publish = deps.publish ??
|
|
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 (
|
|
147
|
-
const auth = await
|
|
148
|
-
return
|
|
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: (
|
|
274
|
-
getStatus: (
|
|
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 (!
|
|
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
|
|
379
|
-
logger.debug(`No signed-in session for the run: ${loginError?.message ?? status
|
|
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=
|
|
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 {
|
|
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
|
|
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
|
-
*
|
|
40
|
-
* feed header on client-credentials requests, and the request would act on
|
|
41
|
-
* tenant deployment of the same name. A
|
|
42
|
-
*
|
|
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 {};
|