@uipath/solution-tool 1.207.0-preview.325 → 1.207.0-preview.327
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/{cleanup-command-service-rqk7ghsx.js → cleanup-command-service-2tew0b2q.js} +9 -9
- package/dist/{deploy-delete-service-fa1c55b8.js → deploy-delete-service-8mepywq6.js} +8 -8
- package/dist/{deploy-run-service-2168v00k.js → deploy-run-service-1zkyb3xj.js} +9 -9
- package/dist/{deploy-status-service-6rv0fe03.js → deploy-status-service-1a03f8kf.js} +7 -7
- package/dist/deploy.js +13 -13
- package/dist/{deployment-search-0p8jbsbx.js → deployment-search-96nd8xzy.js} +4 -4
- package/dist/{feed-resolver-xk8d4s4z.js → feed-resolver-vythebkd.js} +4 -4
- package/dist/{feed-scope-failure-fe9jmmw8.js → feed-scope-failure-7mtefs28.js} +5 -5
- package/dist/{feed-session-kd6fjc6b.js → feed-session-xea3csbs.js} +2 -2
- package/dist/{folder-runtime-check-e250807w.js → folder-runtime-check-hrrap7tj.js} +6 -6
- package/dist/{governance-options-d7z0fd07.js → governance-options-94dntep9.js} +3 -3
- package/dist/{index-90xqa956.js → index-8mfsc9xd.js} +1 -1
- package/dist/{index-958ch0vw.js → index-ze0dykyy.js} +2 -2
- package/dist/index.js +13 -13
- package/dist/init.js +1 -1
- package/dist/{list-z2f9cc6d.js → list-h0v18b2k.js} +2 -2
- package/dist/models/pack-command-types.d.ts +6 -0
- package/dist/{node-6mbb2jsp.js → node-c7egx38m.js} +3 -3
- package/dist/{pack-command-service-3kkc8d7g.js → pack-command-service-hrw2tzrz.js} +12 -12
- package/dist/{pack-project-h77ameqw.js → pack-project-637c6e53.js} +6 -6
- package/dist/pack.d.ts +1 -0
- package/dist/pack.js +18 -15
- package/dist/{package-id-wpm1zc4w.js → package-id-bx04r2x6.js} +2 -2
- package/dist/{packager-tool-ewfe6bbf.js → packager-tool-0c9bk60r.js} +9 -9
- package/dist/{packager-tool-f52xxfcj.js → packager-tool-16xpvqxs.js} +2 -2
- package/dist/{packager-tool-0tqt72qv.js → packager-tool-1dq5nyjb.js} +2 -2
- package/dist/{packager-tool-m3sq7e24.js → packager-tool-2dr18shf.js} +5 -5
- package/dist/{packager-tool-1ez9gfm4.js → packager-tool-3zz9wh5t.js} +1 -1
- package/dist/{packager-tool-sgn5eeqr.js → packager-tool-5aany26d.js} +7 -3
- package/dist/{packager-tool-c3qsn2bv.js → packager-tool-7g8kgqcf.js} +2 -2
- package/dist/{packager-tool-w35s60sx.js → packager-tool-7kc2jj81.js} +1 -1
- package/dist/{packager-tool-mfd3vd90.js → packager-tool-7pvjjnv1.js} +30 -11
- package/dist/{packager-tool-dhmjmspf.js → packager-tool-90nha3v0.js} +1 -1
- package/dist/{packager-tool-ytjt16ap.js → packager-tool-dhs7qrqs.js} +1 -1
- package/dist/{packager-tool-p1xfsv6c.js → packager-tool-hs0mm5vv.js} +1 -1
- package/dist/{packager-tool-nwk34qhw.js → packager-tool-j25nrqr6.js} +44 -6
- package/dist/{packager-tool-35z0771r.js → packager-tool-n4qv2nfv.js} +1 -1
- package/dist/{packager-tool-yrtxmt0g.js → packager-tool-pseqj2a1.js} +4 -4
- package/dist/{packager-tool-devc4w73.js → packager-tool-q9sxf46r.js} +9 -2
- package/dist/{packager-tool-resolver-mynfj0rt.js → packager-tool-resolver-hxsbmcfe.js} +3 -3
- package/dist/{packager-tool-bcsxw48z.js → packager-tool-skf5mgss.js} +2 -2
- package/dist/{packager-tool-tkdx2b8y.js → packager-tool-tchy27q3.js} +3 -3
- package/dist/{packager-tool-gmh6be68.js → packager-tool-tnj7h4ts.js} +11 -9
- package/dist/{packager-tool-ebf7sygz.js → packager-tool-v3tm8hgs.js} +1 -1
- package/dist/{packager-tool-68fakde4.js → packager-tool-w0205wjc.js} +5 -3
- package/dist/{packager-tool-ha0wprcw.js → packager-tool-x3cw1mx8.js} +2 -2
- package/dist/{packager-tool-yz1gdpya.js → packager-tool-ycbfmjza.js} +63 -62
- package/dist/{packager-tool-6425xrcg.js → packager-tool-zf2nhxb7.js} +4 -4
- package/dist/{packager-tool-1fryqqby.js → packager-tool-zqfkbmf8.js} +2 -2
- package/dist/{packager-tool-553p75a9.js → packager-tool-zwagwcfd.js} +2 -2
- package/dist/{packager-tool-0gyqtxvs.js → packager-tool-zypcchgz.js} +2 -2
- package/dist/packager-tool.js +2 -2
- package/dist/{prepare-solution-resources-0bhq6bgz.js → prepare-solution-resources-9ppg1qqp.js} +5 -5
- package/dist/{project-command-utils-va2sd191.js → project-command-utils-n5bga4n5.js} +1 -1
- package/dist/{project-contributions-y0yjk4q2.js → project-contributions-eh564m9d.js} +4 -4
- package/dist/{project-identity-telemetry-kpa8zbsj.js → project-identity-telemetry-6s1ewe4e.js} +4 -4
- package/dist/publish.js +5 -5
- package/dist/{resource-mutations-890csmqe.js → resource-mutations-g9sqmvw7.js} +1 -1
- package/dist/{resource-version-lookup-nf9naxs4.js → resource-version-lookup-wrt0m1q7.js} +1 -1
- package/dist/resource.js +1 -1
- package/dist/{restore-command-service-vd62zf27.js → restore-command-service-x57q5x18.js} +9 -9
- package/dist/{run-service-88qz7qm1.js → run-service-hkxaqhce.js} +19 -18
- package/dist/services/publish-service.d.ts +14 -1
- package/dist/templates/AGENTS.md +5 -1
- package/dist/tool.js +13 -13
- package/package.json +2 -2
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./packager-tool-gb3dq79g.js";
|
|
6
6
|
import {
|
|
7
7
|
isUnpackableProjectTypeError2
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-zypcchgz.js";
|
|
9
9
|
import {
|
|
10
10
|
PackCommandService2
|
|
11
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-tnj7h4ts.js";
|
|
12
12
|
|
|
13
13
|
// src/services/pack-service.ts
|
|
14
14
|
async function packSolutionAsync2(solutionPath, options) {
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
Configuration2,
|
|
7
7
|
PipelinesApi,
|
|
8
8
|
classifyFeedSession2
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
10
10
|
import {
|
|
11
11
|
Configuration3,
|
|
12
12
|
WorkflowAction2,
|
|
13
13
|
DeploymentsApi2
|
|
14
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-7g8kgqcf.js";
|
|
15
15
|
import {
|
|
16
16
|
getSolutionAuthContext2
|
|
17
17
|
} from "./packager-tool-n1zrk6zv.js";
|
|
18
18
|
import {
|
|
19
19
|
feedSelectorFlag2
|
|
20
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-x3cw1mx8.js";
|
|
21
21
|
import {
|
|
22
22
|
missingDeploymentMessage,
|
|
23
23
|
resolveDeploymentTargetAsync
|
|
24
|
-
} from "./packager-tool-
|
|
24
|
+
} from "./packager-tool-tchy27q3.js";
|
|
25
25
|
import {
|
|
26
26
|
hasServerErrorCode,
|
|
27
27
|
isBareResponse
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
findDeploymentAcrossFeeds,
|
|
31
31
|
INCOMPLETE_SWEEP_ADVICE,
|
|
32
32
|
reportIncompleteSweepAsync
|
|
33
|
-
} from "./packager-tool-
|
|
33
|
+
} from "./packager-tool-16xpvqxs.js";
|
|
34
34
|
|
|
35
35
|
// src/services/deploy-delete-service.ts
|
|
36
36
|
var fail = (reason, message, instructions, extras = {}) => ({
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
NugetPackager,
|
|
11
11
|
ProjectTool,
|
|
12
12
|
toolsFactoryRepository
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-q9sxf46r.js";
|
|
14
14
|
import {
|
|
15
15
|
ProjectDimensions,
|
|
16
16
|
PackagerDimensions,
|
|
@@ -1423,6 +1423,8 @@ class PackagerParameters {
|
|
|
1423
1423
|
functionsPackagerVersion;
|
|
1424
1424
|
codedAppsPackagerVersion;
|
|
1425
1425
|
jobTarget;
|
|
1426
|
+
intent = "Publish" /* Publish */;
|
|
1427
|
+
includeFormTriggers;
|
|
1426
1428
|
}
|
|
1427
1429
|
|
|
1428
1430
|
// ../packager/project-packager/src/models/project-restore-options.ts
|
|
@@ -3155,7 +3157,7 @@ var package_default = {
|
|
|
3155
3157
|
name: "@uipath/project-packager",
|
|
3156
3158
|
author: "UiPath",
|
|
3157
3159
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3158
|
-
version: "1.207.0-preview.
|
|
3160
|
+
version: "1.207.0-preview.327",
|
|
3159
3161
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
3160
3162
|
type: "module",
|
|
3161
3163
|
main: "./dist/index.js",
|
|
@@ -4122,6 +4124,8 @@ class ProjectPackager {
|
|
|
4122
4124
|
projects: [uiPathProject],
|
|
4123
4125
|
downloadUrl: options.downloadUrl,
|
|
4124
4126
|
projectId: options.projectId,
|
|
4127
|
+
intent: options.intent,
|
|
4128
|
+
includeFormTriggers: options.includeFormTriggers,
|
|
4125
4129
|
targetFramework: options.targetFramework ?? "Portable" /* Portable */,
|
|
4126
4130
|
connection: options.connection,
|
|
4127
4131
|
logger: this.logger,
|
|
@@ -4331,4 +4335,4 @@ async function readMemberPackageIdAsync2(fileSystem, project, solutionPath, solu
|
|
|
4331
4335
|
|
|
4332
4336
|
export { PackagerParameters, ProjectPackOptions2, setGlobalLogHandler, ToolLogger2, GovernancePolicyService, resolveProducedNupkgsAsync, isPackageIdTooLongError, PackService, signNupkgsAsync, PackagerParametersValidator, ProjectLoader, ProjectToolExecutor, ToolsFactory, ProjectPackager, PackageIdReader, readMemberPackageIdAsync2 };
|
|
4333
4337
|
|
|
4334
|
-
//# debugId=
|
|
4338
|
+
//# debugId=1E86B51CAD661FDC64756E2164756E21
|
|
@@ -257,7 +257,7 @@ var package_default = {
|
|
|
257
257
|
name: "@uipath/solution-sdk",
|
|
258
258
|
author: "UiPath",
|
|
259
259
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
260
|
-
version: "1.207.0-preview.
|
|
260
|
+
version: "1.207.0-preview.327",
|
|
261
261
|
repository: {
|
|
262
262
|
type: "git",
|
|
263
263
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -1179,4 +1179,4 @@ class SearchApi extends BaseAPI {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
export { Configuration3, ResponseError, SDK_USER_AGENT, DeploymentActivationStatus2, WorkflowAction2, DeploymentOperationStatus2, DeploymentSearchItemDto2FromJSON, PackageInfoFromJSON, SolutionDeploymentAction2, DeploymentsApi2, SearchApi };
|
|
1181
1181
|
|
|
1182
|
-
//# debugId=
|
|
1182
|
+
//# debugId=102979A43CA93EEA64756E2164756E21
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
classifyFeedSession2,
|
|
20
20
|
feedSessionRefusal2,
|
|
21
21
|
feedSessionRefusalAsync2
|
|
22
|
-
} from "./packager-tool-
|
|
22
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
23
23
|
import {
|
|
24
24
|
Configuration3,
|
|
25
25
|
SolutionDeploymentAction2,
|
|
26
26
|
DeploymentsApi2
|
|
27
|
-
} from "./packager-tool-
|
|
27
|
+
} from "./packager-tool-7g8kgqcf.js";
|
|
28
28
|
import {
|
|
29
29
|
getSolutionAuthContext2
|
|
30
30
|
} from "./packager-tool-n1zrk6zv.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
newestDeploymentRow2,
|
|
41
41
|
interpretFailedDeployPoll2,
|
|
42
42
|
resolveInstalledFolder2
|
|
43
|
-
} from "./packager-tool-
|
|
43
|
+
} from "./packager-tool-zqfkbmf8.js";
|
|
44
44
|
import {
|
|
45
45
|
activateDeployment,
|
|
46
46
|
buildDeploymentLinks,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
ACKNOWLEDGE_PERMANENT_DELETION_FLAG,
|
|
52
52
|
finiteOr,
|
|
53
53
|
runInstallToOutcomeAsync
|
|
54
|
-
} from "./packager-tool-
|
|
54
|
+
} from "./packager-tool-pseqj2a1.js";
|
|
55
55
|
import {
|
|
56
56
|
resolveParentFolder,
|
|
57
57
|
resolveFolderInfo,
|
|
@@ -61,12 +61,12 @@ import {
|
|
|
61
61
|
deleteDeploymentCommand2,
|
|
62
62
|
describeFeedResolutionFailureAsync2,
|
|
63
63
|
resolveFeedScope2
|
|
64
|
-
} from "./packager-tool-
|
|
64
|
+
} from "./packager-tool-x3cw1mx8.js";
|
|
65
65
|
import {
|
|
66
66
|
linkedProcessNamesFromConfig2,
|
|
67
67
|
checkFolderRuntimesAsync2,
|
|
68
68
|
logFolderRuntimeWarnings2
|
|
69
|
-
} from "./packager-tool-
|
|
69
|
+
} from "./packager-tool-zf2nhxb7.js";
|
|
70
70
|
import {
|
|
71
71
|
formatDeploymentFailureDetails,
|
|
72
72
|
hasServerErrorCode,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
appendDeploymentStateInstructions,
|
|
83
83
|
needsPendingResources,
|
|
84
84
|
deploymentNextSteps
|
|
85
|
-
} from "./packager-tool-
|
|
85
|
+
} from "./packager-tool-skf5mgss.js";
|
|
86
86
|
|
|
87
87
|
// src/services/deploy-run-service.ts
|
|
88
88
|
var DEFAULT_TIMEOUT_SECONDS = 360;
|
|
@@ -265,9 +265,16 @@ async function deployRunAsync2(options) {
|
|
|
265
265
|
if (!installError) {
|
|
266
266
|
return fail(installFailureReason(feedScope), "The install request returned no pipeline deployment.", installFailureHint(feedScope, options));
|
|
267
267
|
}
|
|
268
|
+
const forbiddenMessage = installForbiddenMessage(feedScope, parentFolderPath ?? options.parentFolderKey);
|
|
268
269
|
const detail = await extractErrorDetails(installError, {
|
|
269
|
-
forbiddenMessage
|
|
270
|
+
forbiddenMessage
|
|
270
271
|
});
|
|
272
|
+
if (detail.context?.httpStatus === 403 && detail.message === forbiddenMessage) {
|
|
273
|
+
return fail(installFailureReason(feedScope), detail.message, `${installForbiddenHint(feedScope, classifyFeedSession2(auth))} Details: ${detail.details}`, {
|
|
274
|
+
errorCode: "permission_denied",
|
|
275
|
+
retry: "RetryWillNotFix"
|
|
276
|
+
});
|
|
277
|
+
}
|
|
271
278
|
if (hasServerErrorCode(detail.details, DRAFT_VERSION_MISMATCH_CODE)) {
|
|
272
279
|
return fail("pending_draft", detail.message, `${pendingDraftHint(feedScope, options)} Details: ${detail.details}`, { errorCode: detail.errorCode, retry: detail.retry });
|
|
273
280
|
}
|
|
@@ -565,8 +572,20 @@ function installFailureHint(scope, options) {
|
|
|
565
572
|
return "Check package name/version with: uip solution packages list.";
|
|
566
573
|
}
|
|
567
574
|
function installForbiddenMessage(scope, folder) {
|
|
568
|
-
|
|
569
|
-
|
|
575
|
+
if (scope.kind === "personal") {
|
|
576
|
+
return "Forbidden (403). Your account may not deploy into your Personal Workspace.";
|
|
577
|
+
}
|
|
578
|
+
const target = folder ? `folder '${folder}'` : "the tenant root";
|
|
579
|
+
return `Forbidden (403). Your account has no permission to deploy into ${target}. ` + "Deploying needs SolutionDeployments.Create (tenant) or FolderSolutionDeployments.Create (that folder); " + "an external app also needs the Solutions.Deployments.Write scope.";
|
|
580
|
+
}
|
|
581
|
+
function installForbiddenHint(scope, session) {
|
|
582
|
+
if (scope.kind === "personal") {
|
|
583
|
+
return "Ask a tenant administrator to enable your Personal Workspace, or for the deploy permission on a folder, then retry.";
|
|
584
|
+
}
|
|
585
|
+
if (session !== "user") {
|
|
586
|
+
return "Ask a tenant administrator for SolutionDeployments.Create (tenant) or FolderSolutionDeployments.Create (that folder), " + "and for an external app the Solutions.Deployments.Write scope, then re-run this command, or deploy into another folder with --parent-folder-path. " + "An external app has no Personal Workspace to deploy into instead.";
|
|
587
|
+
}
|
|
588
|
+
return "Ask a tenant administrator for the permission, or deploy into another folder with --parent-folder-path. " + "To deploy without that permission, use your Personal Workspace in two steps. " + "1. Publish the package there: uip solution publish <package.zip> --personal-workspace (without --feed). " + "2. Run this deploy again with --personal-workspace in place of --feed, --parent-folder-path and --parent-folder-key " + "(it cannot be combined with them; drop each and its value). " + "A Personal Workspace deploy reads only that feed, so a package published to the tenant feed is not found there.";
|
|
570
589
|
}
|
|
571
590
|
function scopeLabel(scope) {
|
|
572
591
|
if (scope.kind === "personal") {
|
|
@@ -738,4 +757,4 @@ async function resolveFeedDeployLocation(scope, options) {
|
|
|
738
757
|
|
|
739
758
|
export { deployRunAsync2 };
|
|
740
759
|
|
|
741
|
-
//# debugId=
|
|
760
|
+
//# debugId=CA3A850962F82F6664756E2164756E21
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
describeFeedResolutionFailureAsync2,
|
|
7
7
|
resolveFeedScope2
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-x3cw1mx8.js";
|
|
9
9
|
|
|
10
10
|
// src/services/feed-scope-failure.ts
|
|
11
11
|
async function resolveFeedScopeOrFailureAsync2(options, session) {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Configuration3,
|
|
15
15
|
DeploymentSearchItemDto2FromJSON,
|
|
16
16
|
SearchApi
|
|
17
|
-
} from "./packager-tool-
|
|
17
|
+
} from "./packager-tool-7g8kgqcf.js";
|
|
18
18
|
|
|
19
19
|
// ../pipelines-sdk/generated/src/runtime.ts
|
|
20
20
|
var BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
Configuration2,
|
|
16
16
|
PipelinesApi,
|
|
17
|
+
classifyFeedSession2,
|
|
17
18
|
feedSessionRefusalAsync2
|
|
18
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
19
20
|
import {
|
|
20
21
|
getSolutionAuthContext2
|
|
21
22
|
} from "./packager-tool-n1zrk6zv.js";
|
|
@@ -29,7 +30,7 @@ import {
|
|
|
29
30
|
feedScopeInitOverride2,
|
|
30
31
|
describeFeedResolutionFailureAsync2,
|
|
31
32
|
resolveFeedScope2
|
|
32
|
-
} from "./packager-tool-
|
|
33
|
+
} from "./packager-tool-x3cw1mx8.js";
|
|
33
34
|
import {
|
|
34
35
|
capturePackedSolutionIdentity2
|
|
35
36
|
} from "./packager-tool-t9zked1m.js";
|
|
@@ -304,7 +305,7 @@ async function publishSolutionAsync2(packagePath, options = {}) {
|
|
|
304
305
|
locationKey: scope.folderKey
|
|
305
306
|
}));
|
|
306
307
|
if (uploadError) {
|
|
307
|
-
return mapUploadError(uploadError);
|
|
308
|
+
return mapUploadError(uploadError, scope, classifyFeedSession2(auth));
|
|
308
309
|
}
|
|
309
310
|
let packageVersionInfo = uploadResult;
|
|
310
311
|
if (options.wait) {
|
|
@@ -356,8 +357,32 @@ async function publishSolutionAsync2(packagePath, options = {}) {
|
|
|
356
357
|
feedKind: scope.kind
|
|
357
358
|
};
|
|
358
359
|
}
|
|
359
|
-
|
|
360
|
-
|
|
360
|
+
function uploadTargetLabel(scope) {
|
|
361
|
+
if (scope.kind === "personal")
|
|
362
|
+
return "your Personal Workspace feed";
|
|
363
|
+
if (scope.kind === "folder") {
|
|
364
|
+
return `the feed '${scope.name ?? scope.folderKey ?? "<feed>"}'`;
|
|
365
|
+
}
|
|
366
|
+
return "the tenant feed";
|
|
367
|
+
}
|
|
368
|
+
function uploadForbiddenMessage(scope) {
|
|
369
|
+
if (scope.kind === "personal") {
|
|
370
|
+
return "Forbidden (403). Your account may not publish to your Personal Workspace feed.";
|
|
371
|
+
}
|
|
372
|
+
return `Forbidden (403). Your account has no permission to publish to ${uploadTargetLabel(scope)}. ` + "Publishing needs SolutionPackages.Create (tenant) or FolderSolutionPackages.Create (the feed's folder); " + "an external app also needs the Solutions.Packages.Write scope.";
|
|
373
|
+
}
|
|
374
|
+
function uploadForbiddenInstructions(scope, session) {
|
|
375
|
+
if (scope.kind === "personal") {
|
|
376
|
+
return "Ask a tenant administrator to enable your Personal Workspace, or for the publish permission on another feed, then retry.";
|
|
377
|
+
}
|
|
378
|
+
if (session !== "user") {
|
|
379
|
+
return "Ask a tenant administrator for SolutionPackages.Create (tenant) or FolderSolutionPackages.Create (the feed's folder), " + "and for an external app the Solutions.Packages.Write scope, then re-run this command. " + "An external app has no Personal Workspace to publish to instead.";
|
|
380
|
+
}
|
|
381
|
+
return "Without that permission, ship through your Personal Workspace: " + "uip solution publish <package.zip> --personal-workspace (without --feed), then " + "uip solution deploy run ... --personal-workspace (without --feed, --parent-folder-path or --parent-folder-key; " + "deploy reads only the feed it is given, so pass the flag to both). " + "Or ask a tenant administrator for the permission and re-run this command.";
|
|
382
|
+
}
|
|
383
|
+
async function mapUploadError(uploadError, scope, session) {
|
|
384
|
+
const forbiddenMessage = uploadForbiddenMessage(scope);
|
|
385
|
+
const { message, details, context, retry } = await extractErrorDetails(uploadError, { forbiddenMessage });
|
|
361
386
|
const httpStatus = context?.httpStatus ?? extractUploadHttpStatus(message, details);
|
|
362
387
|
const errorCode = context?.errorCode ?? extractUploadErrorCode(message, details);
|
|
363
388
|
const resolvedContext = mergeUploadErrorContext(context, httpStatus, errorCode);
|
|
@@ -365,6 +390,19 @@ async function mapUploadError(uploadError) {
|
|
|
365
390
|
const fetchCause = uploadError instanceof Error && uploadError.name === "FetchError" && uploadError.cause instanceof Error ? uploadError.cause : null;
|
|
366
391
|
const surfacedMessage = fetchCause ? `Failed to upload package: ${fetchCause.message}` : message;
|
|
367
392
|
let reason = "upload_failed";
|
|
393
|
+
if (httpStatus === 403 && message === forbiddenMessage) {
|
|
394
|
+
return {
|
|
395
|
+
ok: false,
|
|
396
|
+
reason: "upload_forbidden",
|
|
397
|
+
message,
|
|
398
|
+
details,
|
|
399
|
+
errorCode,
|
|
400
|
+
instructions: details ? `${uploadForbiddenInstructions(scope, session)} Details: ${details}` : uploadForbiddenInstructions(scope, session),
|
|
401
|
+
cliErrorCode: "permission_denied",
|
|
402
|
+
retry: "RetryWillNotFix",
|
|
403
|
+
context: resolvedContext
|
|
404
|
+
};
|
|
405
|
+
}
|
|
368
406
|
if (isVersionConflictError(message, details)) {
|
|
369
407
|
reason = "upload_version_conflict";
|
|
370
408
|
} else if (fetchCause || httpStatus !== undefined && httpStatus >= 500) {
|
|
@@ -385,4 +423,4 @@ async function mapUploadError(uploadError) {
|
|
|
385
423
|
|
|
386
424
|
export { readPackedSolutionId, publishSolutionAsync2 };
|
|
387
425
|
|
|
388
|
-
//# debugId=
|
|
426
|
+
//# debugId=0AE76326D8366E9C64756E2164756E21
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./packager-tool-xbfr6y2x.js";
|
|
11
11
|
import {
|
|
12
12
|
createNodeSolutionPackager
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-w0205wjc.js";
|
|
14
14
|
|
|
15
15
|
// src/services/solution-packager-helpers.ts
|
|
16
16
|
async function createSolutionPackager() {
|
|
@@ -16,25 +16,25 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
Configuration2,
|
|
18
18
|
PipelinesApi
|
|
19
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
20
20
|
import {
|
|
21
21
|
Configuration3,
|
|
22
22
|
DeploymentsApi2
|
|
23
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-7g8kgqcf.js";
|
|
24
24
|
import {
|
|
25
25
|
readDeploymentByKeyAsync2,
|
|
26
26
|
findDeploymentBestEffort2,
|
|
27
27
|
isPipelineDeploymentNotFoundError2,
|
|
28
28
|
mapOperationStatusToPipelineStatus2,
|
|
29
29
|
deploymentToTerminalPipelineResult2
|
|
30
|
-
} from "./packager-tool-
|
|
30
|
+
} from "./packager-tool-zqfkbmf8.js";
|
|
31
31
|
import {
|
|
32
32
|
coerceWorkflowErrorMessages,
|
|
33
33
|
VALIDATION_CONFIRMATION_REQUIRED_CODE
|
|
34
34
|
} from "./packager-tool-2pxe2r4j.js";
|
|
35
35
|
import {
|
|
36
36
|
isCurrentRecordAsync
|
|
37
|
-
} from "./packager-tool-
|
|
37
|
+
} from "./packager-tool-skf5mgss.js";
|
|
38
38
|
|
|
39
39
|
// src/services/deployment-progress.ts
|
|
40
40
|
function deploymentProgressStatus(result) {
|
|
@@ -3,6 +3,13 @@ import {
|
|
|
3
3
|
unzipSync2
|
|
4
4
|
} from "./packager-tool-rj2d1g0w.js";
|
|
5
5
|
|
|
6
|
+
// ../packager/packager-core/src/models/pack-intent.ts
|
|
7
|
+
var PackIntent2;
|
|
8
|
+
((PackIntent) => {
|
|
9
|
+
PackIntent["Debug"] = "Debug";
|
|
10
|
+
PackIntent["Publish"] = "Publish";
|
|
11
|
+
})(PackIntent2 ||= {});
|
|
12
|
+
|
|
6
13
|
// ../packager/packager-core/src/models/tool-result.ts
|
|
7
14
|
class ToolResult {
|
|
8
15
|
errorCode;
|
|
@@ -1446,6 +1453,6 @@ I18nManager.registerTranslations("zh-cn", zh_CN);
|
|
|
1446
1453
|
I18nManager.registerTranslations("zh-tw", zh_TW);
|
|
1447
1454
|
I18nManager.registerTranslations("zu", zu);
|
|
1448
1455
|
I18nManager.setLocale("en");
|
|
1449
|
-
export { Path, TemporaryStorageService, ZipService, I18nManager, translate, normalizeIgnoredRules, LogMessage, NugetConstants, ToolResult, ensureProjectId, writeOrBackfillOperateProjectId, NugetPackager, ProjectTool, SolutionTool, toolsFactoryRepository };
|
|
1456
|
+
export { Path, TemporaryStorageService, ZipService, I18nManager, translate, normalizeIgnoredRules, LogMessage, NugetConstants, PackIntent2, ToolResult, ensureProjectId, writeOrBackfillOperateProjectId, NugetPackager, ProjectTool, SolutionTool, toolsFactoryRepository };
|
|
1450
1457
|
|
|
1451
|
-
//# debugId=
|
|
1458
|
+
//# debugId=8EB44FA929D9729464756E2164756E21
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isUnpackableProjectTypeError2,
|
|
3
3
|
ensurePackagerTools2
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-zypcchgz.js";
|
|
5
5
|
import {
|
|
6
6
|
toolVerbForProjectType2
|
|
7
7
|
} from "./packager-tool-qzcd5c9s.js";
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
8
|
+
import"./packager-tool-hs0mm5vv.js";
|
|
9
|
+
import"./packager-tool-q9sxf46r.js";
|
|
10
10
|
import"./packager-tool-xbfr6y2x.js";
|
|
11
11
|
import"./packager-tool-gb3dq79g.js";
|
|
12
12
|
import"./packager-tool-1db1wqdy.js";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
Configuration2,
|
|
9
9
|
PipelinesApi
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
11
11
|
import {
|
|
12
12
|
Configuration3,
|
|
13
13
|
SolutionDeploymentAction2,
|
|
14
14
|
DeploymentsApi2
|
|
15
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-7g8kgqcf.js";
|
|
16
16
|
|
|
17
17
|
// src/services/deployment-state.ts
|
|
18
18
|
function pendingResourceApis(auth) {
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
classifyFeedSession2,
|
|
10
10
|
feedSessionRefusal2,
|
|
11
11
|
feedSessionRefusalAsync2
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
13
13
|
import {
|
|
14
14
|
readDeploymentByKeyAsync2
|
|
15
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-zqfkbmf8.js";
|
|
16
16
|
import {
|
|
17
17
|
feedScopeInitOverride2,
|
|
18
18
|
describeFeedResolutionFailureAsync2,
|
|
19
19
|
resolveFeedScope2
|
|
20
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-x3cw1mx8.js";
|
|
21
21
|
|
|
22
22
|
// src/services/feed-selection.ts
|
|
23
23
|
async function resolveFeedSelectionAsync(auth, flags, action) {
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
} from "./packager-tool-xbfr6y2x.js";
|
|
15
15
|
import {
|
|
16
16
|
ToolResult
|
|
17
|
-
} from "./packager-tool-
|
|
17
|
+
} from "./packager-tool-q9sxf46r.js";
|
|
18
18
|
import {
|
|
19
19
|
SolutionPackOptions,
|
|
20
20
|
INVALID_PACKAGE_ID
|
|
21
|
-
} from "./packager-tool-
|
|
21
|
+
} from "./packager-tool-w0205wjc.js";
|
|
22
22
|
import {
|
|
23
23
|
validateGovernanceOptions2,
|
|
24
24
|
resolveGovernanceFileTypeAsync2
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
isUnpackableProjectTypeError2,
|
|
28
28
|
ensurePackagerTools2
|
|
29
|
-
} from "./packager-tool-
|
|
29
|
+
} from "./packager-tool-zypcchgz.js";
|
|
30
30
|
import {
|
|
31
31
|
prepareSolutionResources2
|
|
32
|
-
} from "./packager-tool-
|
|
32
|
+
} from "./packager-tool-zwagwcfd.js";
|
|
33
33
|
import {
|
|
34
34
|
createProjectActivityObserver2
|
|
35
|
-
} from "./packager-tool-
|
|
35
|
+
} from "./packager-tool-7kc2jj81.js";
|
|
36
36
|
import {
|
|
37
37
|
captureExtractedSolution2
|
|
38
38
|
} from "./packager-tool-t9zked1m.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
applyAuthConnection,
|
|
44
44
|
SOLUTION_PATH_INSTRUCTIONS,
|
|
45
45
|
checkSolutionPathAsync
|
|
46
|
-
} from "./packager-tool-
|
|
46
|
+
} from "./packager-tool-n4qv2nfv.js";
|
|
47
47
|
import {
|
|
48
48
|
validatePackProjectOptions,
|
|
49
49
|
PackProjectError
|
|
@@ -318,7 +318,7 @@ Packing project...
|
|
|
318
318
|
throw new PackProjectError("--project packs a project out of a solution folder, not out of a .uis file.", "Pass the solution folder instead: uip solution pack <solution-folder> <output-path> --project <id-or-path>.");
|
|
319
319
|
}
|
|
320
320
|
const [error, result] = await catchError(async () => {
|
|
321
|
-
const { prepareSolutionProjectAsync, packSolutionProjectAsync } = await import("./pack-project-
|
|
321
|
+
const { prepareSolutionProjectAsync, packSolutionProjectAsync } = await import("./pack-project-637c6e53.js");
|
|
322
322
|
const { project, packageId } = await prepareSolutionProjectAsync(this.fs, solutionDir, selector, options.packageId, options.forDebug);
|
|
323
323
|
await this.fs.mkdir(outputPath);
|
|
324
324
|
const packOptions = await this.createProjectPackOptions(project, packageId, outputPath, options);
|
|
@@ -410,6 +410,7 @@ Packing project...
|
|
|
410
410
|
packOptions.inputPath = inputPath;
|
|
411
411
|
packOptions.destinationPath = outputPath;
|
|
412
412
|
packOptions.configuration = "Release" /* Release */;
|
|
413
|
+
packOptions.intent = options.intent ?? "Publish" /* Publish */;
|
|
413
414
|
const packageName = this.resolvePackageName(absoluteSolutionPath, isUisFile, options);
|
|
414
415
|
packOptions.package = { id: packageName, ...packageMetadata(options) };
|
|
415
416
|
packOptions.solutionType = options.solutionType;
|
|
@@ -417,10 +418,11 @@ Packing project...
|
|
|
417
418
|
return packOptions;
|
|
418
419
|
}
|
|
419
420
|
async createProjectPackOptions(project, packageId, outputPath, options) {
|
|
420
|
-
const projectPackager = await import("./node-
|
|
421
|
+
const projectPackager = await import("./node-c7egx38m.js");
|
|
421
422
|
const packOptions = new projectPackager.ProjectPackOptions;
|
|
422
423
|
packOptions.inputPath = project.ProjectPath ?? "";
|
|
423
424
|
packOptions.destinationPath = outputPath;
|
|
425
|
+
packOptions.intent = options.intent ?? "Publish" /* Publish */;
|
|
424
426
|
packOptions.package = { id: packageId, ...packageMetadata(options) };
|
|
425
427
|
await applySharedPackOptions(packOptions, options);
|
|
426
428
|
return packOptions;
|
|
@@ -542,4 +544,4 @@ function formatPackFailureInstructions(message, dryRun) {
|
|
|
542
544
|
|
|
543
545
|
export { PackCommandService2 };
|
|
544
546
|
|
|
545
|
-
//# debugId=
|
|
547
|
+
//# debugId=1AF8DCAF2AE19CC164756E2164756E21
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
translate,
|
|
7
7
|
ToolResult,
|
|
8
8
|
toolsFactoryRepository
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-q9sxf46r.js";
|
|
10
10
|
import {
|
|
11
11
|
PackagerParameters,
|
|
12
12
|
setGlobalLogHandler,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ToolsFactory,
|
|
23
23
|
ProjectPackager,
|
|
24
24
|
PackageIdReader
|
|
25
|
-
} from "./packager-tool-
|
|
25
|
+
} from "./packager-tool-5aany26d.js";
|
|
26
26
|
import {
|
|
27
27
|
NodeFileSystem
|
|
28
28
|
} from "./packager-tool-1db1wqdy.js";
|
|
@@ -1439,6 +1439,8 @@ class SolutionPackager {
|
|
|
1439
1439
|
downloadUrl: options.downloadUrl,
|
|
1440
1440
|
solutionId: solution.SolutionId,
|
|
1441
1441
|
configuration: options.configuration,
|
|
1442
|
+
intent: options.intent,
|
|
1443
|
+
includeFormTriggers: options.includeFormTriggers,
|
|
1442
1444
|
targetFramework: options.targetFramework ?? "Portable" /* Portable */,
|
|
1443
1445
|
connection: options.connection,
|
|
1444
1446
|
logger: this.logger,
|
|
@@ -1493,4 +1495,4 @@ async function createNodeSolutionPackager(options) {
|
|
|
1493
1495
|
}
|
|
1494
1496
|
export { SolutionPackOptions, BaseNodePackagerFactory2, DotnetDiscoveryService2, NodePackageSignService2, createNodeProjectPackager2, INVALID_PACKAGE_ID, toProjectDiagnostics, createNodeSolutionPackager };
|
|
1495
1497
|
|
|
1496
|
-
//# debugId=
|
|
1498
|
+
//# debugId=B2BBE35944C1DC4364756E2164756E21
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./packager-tool-n1zrk6zv.js";
|
|
16
16
|
import {
|
|
17
17
|
classifyFeedSession2
|
|
18
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-dhs7qrqs.js";
|
|
19
19
|
import {
|
|
20
20
|
PersonalWorkspacesApi,
|
|
21
21
|
createOrchestratorConfig,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./packager-tool-yvrjv584.js";
|
|
24
24
|
import {
|
|
25
25
|
getAvailablePublishLocationsV22
|
|
26
|
-
} from "./packager-tool-
|
|
26
|
+
} from "./packager-tool-v3tm8hgs.js";
|
|
27
27
|
|
|
28
28
|
// src/services/personal-workspace-resolver.ts
|
|
29
29
|
async function resolvePersonalWorkspace(options) {
|