@uipath/solution-tool 1.206.0-preview.301 → 1.207.0-preview.305
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-ma0gy822.js → archive-extract-afgwacbg.js} +3 -3
- package/dist/{cleanup-command-service-8whhrsvy.js → cleanup-command-service-j9kawew9.js} +20 -15
- package/dist/deploy-delete-service-1erqap9a.js +23 -0
- package/dist/deploy-run-service-jbs6dxye.js +24 -0
- package/dist/{deploy-status-service-at6cxp1a.js → deploy-status-service-4zn90vds.js} +49 -25
- package/dist/deploy.js +21 -20
- package/dist/{deployment-search-40dknsk1.js → deployment-search-dwzahe4v.js} +9 -9
- package/dist/feed-resolver-d14rdjss.js +31 -0
- package/dist/feed-scope-failure-w16mze3z.js +20 -0
- package/dist/{feed-session-dvyfw5k7.js → feed-session-f2sby6t8.js} +6 -6
- package/dist/{first-party-service-6gf3n6d8.js → first-party-service-7cggb17y.js} +1 -1
- package/dist/folder-runtime-check-586c41dq.js +25 -0
- package/dist/{governance-options-am1hfj5b.js → governance-options-y2xsv7ff.js} +7 -7
- package/dist/{packager-tool-5vf0v538.js → index-6ma58k47.js} +33 -708
- package/dist/{index-p3x7ztdr.js → index-795rsz0e.js} +1 -1
- package/dist/{index-yjvmjpdn.js → index-pzkzbqbs.js} +12 -11
- package/dist/{index-1cfw8mj0.js → index-wfqzwh7k.js} +9 -7
- package/dist/index.js +26 -26
- package/dist/init.js +10 -10
- package/dist/{list-vsecskj1.js → list-6pe1nab5.js} +11 -11
- package/dist/models/pack-command-types.d.ts +12 -0
- package/dist/{node-vndr59bc.js → node-13wj5mzd.js} +6 -6
- package/dist/pack-command-service-j9bqnsn1.js +32 -0
- package/dist/{pack-project-re7s480k.js → pack-project-3sdddc42.js} +21 -18
- package/dist/pack.js +25 -22
- package/dist/{package-id-rx8gq6y2.js → package-id-5j4q232a.js} +3 -3
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/{packager-tool-vx2c68sb.js → packager-tool-1dsxhz1r.js} +2 -2
- package/dist/{packager-tool-t2r6z24f.js → packager-tool-1tvhgac9.js} +15 -6
- package/dist/{packager-tool-4pt71nf1.js → packager-tool-2atxqqgd.js} +49 -24
- package/dist/packager-tool-3ft8hywr.js +449 -0
- package/dist/{packager-tool-g1c0xdh2.js → packager-tool-46x80z85.js} +8 -4
- package/dist/{packager-tool-gjfb0wcy.js → packager-tool-4hm40a32.js} +8 -74
- package/dist/{packager-tool-f15an17m.js → packager-tool-5p1vy335.js} +1 -1
- package/dist/packager-tool-612prgtc.js +140 -0
- package/dist/packager-tool-7gqn5apd.js +72 -0
- package/dist/{packager-tool-aws5w512.js → packager-tool-887bkh9y.js} +1 -1
- package/dist/{packager-tool-vj88gh5b.js → packager-tool-8tckw03n.js} +28 -9
- package/dist/{packager-tool-9vtp28fb.js → packager-tool-93qy1v8m.js} +52 -15
- package/dist/{packager-tool-fx4ws49n.js → packager-tool-cenfraf4.js} +2 -2
- package/dist/{packager-tool-chff74yz.js → packager-tool-cr1khqtm.js} +103 -166
- package/dist/{packager-tool-6tn79r1b.js → packager-tool-da3hvfyn.js} +528 -202
- package/dist/{packager-tool-2zn98p5r.js → packager-tool-dd937g7k.js} +4 -4
- package/dist/{packager-tool-a7s0gbxs.js → packager-tool-devc4w73.js} +7 -2
- package/dist/{packager-tool-v7h8s6yj.js → packager-tool-ewbkaecg.js} +18 -11
- package/dist/{packager-tool-d7v4083a.js → packager-tool-g08b669a.js} +22 -18
- package/dist/{packager-tool-m07vyk89.js → packager-tool-gb3dq79g.js} +36 -9
- package/dist/{packager-tool-395kmy70.js → packager-tool-gmbcn83x.js} +3 -3
- package/dist/{packager-tool-btz44ase.js → packager-tool-jhtsana2.js} +119 -52
- package/dist/{packager-tool-4rvfxkyh.js → packager-tool-jtg2arr8.js} +20 -8
- package/dist/{packager-tool-t39pjz7n.js → packager-tool-jtvhkavz.js} +48 -6
- package/dist/packager-tool-kffz64hn.js +279 -0
- package/dist/{packager-tool-p5322gew.js → packager-tool-kmwjscby.js} +88 -10
- package/dist/{packager-tool-ppj5f4y7.js → packager-tool-n1zrk6zv.js} +4 -2
- package/dist/{packager-tool-avrdp2za.js → packager-tool-pmc5txbm.js} +4 -6
- package/dist/{packager-tool-egc54x78.js → packager-tool-qhht1tc9.js} +2408 -771
- package/dist/{packager-tool-zcqfq3vc.js → packager-tool-qm876ezh.js} +84 -29
- package/dist/{packager-tool-resolver-30hxk8vm.js → packager-tool-resolver-y52kztnx.js} +6 -6
- package/dist/{packager-tool-3ejz0af8.js → packager-tool-rhg3mwkn.js} +14 -8
- package/dist/{packager-tool-ckrt4gyr.js → packager-tool-t9zked1m.js} +3 -3
- package/dist/{packager-tool-36w7az7k.js → packager-tool-tat0qs6z.js} +26 -10
- package/dist/packager-tool-tf0rn1tp.js +741 -0
- package/dist/{packager-tool-p5aar2k0.js → packager-tool-tmba5jv0.js} +140 -10
- package/dist/{packager-tool-vk3e239z.js → packager-tool-tqe3m1xp.js} +6 -6
- package/dist/{packager-tool-1ctvbx0h.js → packager-tool-tr3ttz5c.js} +1 -1
- package/dist/{packager-tool-k9dk39tg.js → packager-tool-txygqgb2.js} +3 -3
- package/dist/packager-tool-v6jcys3s.js +46 -0
- package/dist/packager-tool-w35s60sx.js +179 -0
- package/dist/{packager-tool-axqk17xw.js → packager-tool-xbfr6y2x.js} +142 -34
- package/dist/{packager-tool-2qsbh4kd.js → packager-tool-yfcscjfp.js} +50 -12
- package/dist/{packager-tool-ay4j9x92.js → packager-tool-ykq6gmhc.js} +19 -8
- package/dist/packager-tool.js +2 -2
- package/dist/prepare-solution-resources-sk3tyy8b.js +26 -0
- package/dist/{project-command-utils-82tja3k0.js → project-command-utils-7ygs8xq0.js} +20 -13
- package/dist/project-contributions-nzh06q0y.js +31 -0
- package/dist/project-identity-telemetry-47k2g7nq.js +18 -0
- package/dist/publish.js +14 -14
- package/dist/{resource-mutations-h6wfdqr4.js → resource-mutations-qcz2vcxe.js} +9 -9
- package/dist/{resource-version-lookup-xzgnvr48.js → resource-version-lookup-w3kzh4z9.js} +9 -9
- package/dist/resource.js +9 -9
- package/dist/{restore-command-service-wgqxp5tb.js → restore-command-service-m6c8fb7q.js} +20 -15
- package/dist/run-service-cmrzccnm.js +1055 -0
- package/dist/services/deploy-activate-service.d.ts +5 -2
- package/dist/services/deploy-config-file.d.ts +24 -0
- package/dist/services/deploy-delete-service.d.ts +1 -1
- package/dist/services/deploy-run-service.d.ts +8 -1
- package/dist/services/deploy-uninstall-service.d.ts +4 -2
- package/dist/services/deploy-upgrade-service.d.ts +23 -2
- package/dist/services/deployment-feed-locator.d.ts +19 -6
- package/dist/services/deployment-links.d.ts +16 -0
- package/dist/services/deployment-progress.d.ts +10 -0
- package/dist/services/deployment-search.d.ts +15 -2
- package/dist/services/deployment-state.d.ts +9 -0
- package/dist/services/feed-resolver.d.ts +17 -0
- package/dist/services/feed-selection.d.ts +59 -0
- package/dist/services/folder-runtime-check.d.ts +107 -0
- package/dist/services/incomplete-feed-sweep.d.ts +6 -0
- package/dist/services/pack-command-service.d.ts +6 -0
- package/dist/services/pack-project.d.ts +1 -1
- package/dist/services/package-metadata-rewrite.d.ts +13 -0
- package/dist/services/personal-workspace-resolver.d.ts +4 -1
- package/dist/services/prepare-solution-resources.d.ts +11 -6
- package/dist/services/project-contributions.d.ts +26 -2
- package/dist/services/project-identity-telemetry.d.ts +31 -0
- package/dist/services/solution-members.d.ts +31 -0
- package/dist/{ship-telemetry-19gx83af.js → ship-telemetry-9djqndmy.js} +4 -4
- package/dist/{solution-auth-jxcgd2m0.js → solution-auth-0e3qm74f.js} +3 -3
- package/dist/{solution-definition-helper-tqwd6cxn.js → solution-definition-helper-bkyhs1bd.js} +1 -1
- package/dist/{solution-identity-c23d9bfv.js → solution-identity-j63p6n81.js} +4 -4
- package/dist/templates/AGENTS.md +131 -24
- package/dist/tool.js +26 -26
- package/package.json +2 -2
- package/dist/deploy-delete-service-dwd4qb1m.js +0 -23
- package/dist/deploy-run-service-0kzfrvnn.js +0 -23
- package/dist/feed-resolver-w4y5aspe.js +0 -27
- package/dist/feed-scope-failure-4ef9zxcx.js +0 -20
- package/dist/pack-command-service-k7ebbfya.js +0 -29
- package/dist/packager-tool-vrqbbh01.js +0 -182
- package/dist/packager-tool-wwzg88qy.js +0 -74
- package/dist/prepare-solution-resources-h7zvnncd.js +0 -26
- package/dist/project-contributions-xx560n8y.js +0 -27
- package/dist/run-service-2rc4we5q.js +0 -506
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
NugetPackager,
|
|
11
11
|
ProjectTool,
|
|
12
12
|
toolsFactoryRepository
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-devc4w73.js";
|
|
14
14
|
import {
|
|
15
15
|
ProjectDimensions,
|
|
16
16
|
PackagerDimensions,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
catchError,
|
|
21
21
|
carriedInstructions,
|
|
22
22
|
isProjectTelemetryDisabled
|
|
23
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
24
24
|
// ../packager/project-packager/src/i18n/locales/de.json
|
|
25
25
|
var de_default = {
|
|
26
26
|
solutionpackager: {
|
|
@@ -29,7 +29,8 @@ var de_default = {
|
|
|
29
29
|
pathRequired: "Project directory path is required",
|
|
30
30
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
31
31
|
readFailed: "Failed to read project file: {path}",
|
|
32
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
32
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
33
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
validator: {
|
|
@@ -120,7 +121,8 @@ var en = {
|
|
|
120
121
|
pathRequired: "Project directory path is required",
|
|
121
122
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
122
123
|
readFailed: "Failed to read project file: {path}",
|
|
123
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
124
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
125
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
124
126
|
}
|
|
125
127
|
},
|
|
126
128
|
validator: {
|
|
@@ -211,7 +213,8 @@ var es_default = {
|
|
|
211
213
|
pathRequired: "Project directory path is required",
|
|
212
214
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
213
215
|
readFailed: "Failed to read project file: {path}",
|
|
214
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
216
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
217
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
215
218
|
}
|
|
216
219
|
},
|
|
217
220
|
validator: {
|
|
@@ -301,7 +304,8 @@ var es_MX_default = {
|
|
|
301
304
|
pathRequired: "Project directory path is required",
|
|
302
305
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
303
306
|
readFailed: "Failed to read project file: {path}",
|
|
304
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
307
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
308
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
305
309
|
}
|
|
306
310
|
},
|
|
307
311
|
validator: {
|
|
@@ -391,7 +395,8 @@ var fr_default = {
|
|
|
391
395
|
pathRequired: "Project directory path is required",
|
|
392
396
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
393
397
|
readFailed: "Failed to read project file: {path}",
|
|
394
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
398
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
399
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
395
400
|
}
|
|
396
401
|
},
|
|
397
402
|
validator: {
|
|
@@ -481,7 +486,8 @@ var ja_default = {
|
|
|
481
486
|
pathRequired: "Project directory path is required",
|
|
482
487
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
483
488
|
readFailed: "Failed to read project file: {path}",
|
|
484
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
489
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
490
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
485
491
|
}
|
|
486
492
|
},
|
|
487
493
|
validator: {
|
|
@@ -571,7 +577,8 @@ var ko_default = {
|
|
|
571
577
|
pathRequired: "Project directory path is required",
|
|
572
578
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
573
579
|
readFailed: "Failed to read project file: {path}",
|
|
574
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
580
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
581
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
575
582
|
}
|
|
576
583
|
},
|
|
577
584
|
validator: {
|
|
@@ -661,7 +668,8 @@ var pt_default = {
|
|
|
661
668
|
pathRequired: "Project directory path is required",
|
|
662
669
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
663
670
|
readFailed: "Failed to read project file: {path}",
|
|
664
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
671
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
672
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
665
673
|
}
|
|
666
674
|
},
|
|
667
675
|
validator: {
|
|
@@ -751,7 +759,8 @@ var pt_BR_default = {
|
|
|
751
759
|
pathRequired: "Project directory path is required",
|
|
752
760
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
753
761
|
readFailed: "Failed to read project file: {path}",
|
|
754
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
762
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
763
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
755
764
|
}
|
|
756
765
|
},
|
|
757
766
|
validator: {
|
|
@@ -841,7 +850,8 @@ var ro_default = {
|
|
|
841
850
|
pathRequired: "Project directory path is required",
|
|
842
851
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
843
852
|
readFailed: "Failed to read project file: {path}",
|
|
844
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
853
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
854
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
845
855
|
}
|
|
846
856
|
},
|
|
847
857
|
validator: {
|
|
@@ -931,7 +941,8 @@ var ru_default = {
|
|
|
931
941
|
pathRequired: "Project directory path is required",
|
|
932
942
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
933
943
|
readFailed: "Failed to read project file: {path}",
|
|
934
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
944
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
945
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
935
946
|
}
|
|
936
947
|
},
|
|
937
948
|
validator: {
|
|
@@ -1021,7 +1032,8 @@ var tr_default = {
|
|
|
1021
1032
|
pathRequired: "Project directory path is required",
|
|
1022
1033
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
1023
1034
|
readFailed: "Failed to read project file: {path}",
|
|
1024
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
1035
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
1036
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
1025
1037
|
}
|
|
1026
1038
|
},
|
|
1027
1039
|
validator: {
|
|
@@ -1111,7 +1123,8 @@ var zh_CN_default = {
|
|
|
1111
1123
|
pathRequired: "Project directory path is required",
|
|
1112
1124
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
1113
1125
|
readFailed: "Failed to read project file: {path}",
|
|
1114
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
1126
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
1127
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
1115
1128
|
}
|
|
1116
1129
|
},
|
|
1117
1130
|
validator: {
|
|
@@ -1201,7 +1214,8 @@ var zh_TW_default = {
|
|
|
1201
1214
|
pathRequired: "Project directory path is required",
|
|
1202
1215
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
1203
1216
|
readFailed: "Failed to read project file: {path}",
|
|
1204
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
1217
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
1218
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
1205
1219
|
}
|
|
1206
1220
|
},
|
|
1207
1221
|
validator: {
|
|
@@ -1291,7 +1305,8 @@ var zu_default = {
|
|
|
1291
1305
|
pathRequired: "Project directory path is required",
|
|
1292
1306
|
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
1293
1307
|
readFailed: "Failed to read project file: {path}",
|
|
1294
|
-
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
1308
|
+
invalidProject: "Invalid project file: {path}. Missing ProjectType field.",
|
|
1309
|
+
invalidJson: "Project file {path} is not a JSON object. {reason}"
|
|
1295
1310
|
}
|
|
1296
1311
|
},
|
|
1297
1312
|
validator: {
|
|
@@ -3140,7 +3155,7 @@ var package_default = {
|
|
|
3140
3155
|
name: "@uipath/project-packager",
|
|
3141
3156
|
author: "UiPath",
|
|
3142
3157
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3143
|
-
version: "1.
|
|
3158
|
+
version: "1.207.0-preview.305",
|
|
3144
3159
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
3145
3160
|
type: "module",
|
|
3146
3161
|
main: "./dist/index.js",
|
|
@@ -3627,28 +3642,54 @@ class ProjectLoader {
|
|
|
3627
3642
|
path: projectFilePath
|
|
3628
3643
|
}));
|
|
3629
3644
|
}
|
|
3630
|
-
const
|
|
3631
|
-
const projectData = JSON.parse(json);
|
|
3645
|
+
const projectData = this.parseProjectFile(fileContent, projectFilePath);
|
|
3632
3646
|
const projectJson = useProjectJson ? projectData : undefined;
|
|
3633
|
-
const
|
|
3634
|
-
const
|
|
3635
|
-
|
|
3647
|
+
const designOptions = projectJson?.designOptions;
|
|
3648
|
+
const outputType = designOptions && typeof designOptions === "object" ? text(designOptions.outputType) : undefined;
|
|
3649
|
+
const projectType = outputType ?? (text(projectData?.ProjectType) || text(projectData?.type));
|
|
3650
|
+
if (!projectType) {
|
|
3636
3651
|
throw new Error(translate.t("solutionpackager.projectLoader.errors.invalidProject", {
|
|
3637
3652
|
path: projectFilePath
|
|
3638
3653
|
}));
|
|
3639
3654
|
}
|
|
3640
|
-
const declaredName = projectJson?.name
|
|
3641
|
-
const declaredDescription = projectJson?.description
|
|
3642
|
-
const declaredAuthor = projectJson?.author
|
|
3655
|
+
const declaredName = text(projectJson?.name) || text(projectData.Name);
|
|
3656
|
+
const declaredDescription = text(projectJson?.description) || text(projectData.Description) || undefined;
|
|
3657
|
+
const declaredAuthor = text(projectJson?.author) || text(projectData.Author) || undefined;
|
|
3658
|
+
const declaredVersion = useProjectJson ? text(projectData.projectVersion) : await this.readProjectJsonVersion(projectPath);
|
|
3643
3659
|
return {
|
|
3644
3660
|
type: projectType,
|
|
3645
3661
|
name: declaredName || Path.basename(projectPath),
|
|
3646
3662
|
projectPath,
|
|
3647
3663
|
projectFilePath,
|
|
3648
3664
|
description: declaredDescription,
|
|
3649
|
-
author: declaredAuthor
|
|
3665
|
+
author: declaredAuthor,
|
|
3666
|
+
version: declaredVersion || undefined
|
|
3650
3667
|
};
|
|
3651
3668
|
}
|
|
3669
|
+
parseProjectFile(fileContent, projectFilePath) {
|
|
3670
|
+
const json = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
|
|
3671
|
+
const [reason, parsed] = parseJson(json);
|
|
3672
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
3673
|
+
throw new Error(translate.t("solutionpackager.projectLoader.errors.invalidJson", {
|
|
3674
|
+
path: projectFilePath,
|
|
3675
|
+
reason: reason ?? ""
|
|
3676
|
+
}).trim());
|
|
3677
|
+
}
|
|
3678
|
+
return parsed;
|
|
3679
|
+
}
|
|
3680
|
+
async readProjectJsonVersion(projectPath) {
|
|
3681
|
+
const projectJsonPath = Path.join(projectPath, ProjectLoader.ProjectJsonFileName);
|
|
3682
|
+
if (!await this.fileSystem.exists(projectJsonPath))
|
|
3683
|
+
return;
|
|
3684
|
+
const fileContent = await this.fileSystem.readFile(projectJsonPath);
|
|
3685
|
+
if (!fileContent)
|
|
3686
|
+
return;
|
|
3687
|
+
try {
|
|
3688
|
+
return text(this.parseProjectFile(fileContent, projectJsonPath).projectVersion);
|
|
3689
|
+
} catch {
|
|
3690
|
+
return;
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3652
3693
|
loadFromWebAppManifest(projectPath, webAppManifestPath) {
|
|
3653
3694
|
const folderName = Path.basename(projectPath);
|
|
3654
3695
|
return {
|
|
@@ -3659,6 +3700,19 @@ class ProjectLoader {
|
|
|
3659
3700
|
};
|
|
3660
3701
|
}
|
|
3661
3702
|
}
|
|
3703
|
+
function parseJson(json) {
|
|
3704
|
+
try {
|
|
3705
|
+
return [undefined, JSON.parse(json)];
|
|
3706
|
+
} catch (error) {
|
|
3707
|
+
return [
|
|
3708
|
+
error instanceof Error ? error.message : String(error),
|
|
3709
|
+
undefined
|
|
3710
|
+
];
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
function text(value) {
|
|
3714
|
+
return typeof value === "string" ? value.trim() : undefined;
|
|
3715
|
+
}
|
|
3662
3716
|
// ../packager/project-packager/src/services/project-tool-executor.ts
|
|
3663
3717
|
var observerTimedOut = (phase) => () => new ToolLogger2("ProjectToolExecutor", "ProjectActivity").debug(`project activity (${phase}) skipped: no answer within ${PROJECT_IDENTITY_LOOKUP_BUDGET_MS} ms`);
|
|
3664
3718
|
|
|
@@ -3801,7 +3855,8 @@ class ProjectPackOptionsBuilder {
|
|
|
3801
3855
|
package: packageInfo,
|
|
3802
3856
|
skipDependencyOptimization: parameters.packOptions?.skipDependencyOptimization ?? false,
|
|
3803
3857
|
includeSources: parameters.packOptions?.includeSources ?? false,
|
|
3804
|
-
splitPackages: parameters.packOptions?.splitPackages ?? false
|
|
3858
|
+
splitPackages: parameters.packOptions?.splitPackages ?? false,
|
|
3859
|
+
skipBuild: parameters.packOptions?.skipBuild ?? false
|
|
3805
3860
|
};
|
|
3806
3861
|
}
|
|
3807
3862
|
}
|
|
@@ -4276,4 +4331,4 @@ async function readMemberPackageIdAsync2(fileSystem, project, solutionPath, solu
|
|
|
4276
4331
|
|
|
4277
4332
|
export { PackagerParameters, ProjectPackOptions2, setGlobalLogHandler, ToolLogger2, GovernancePolicyService, resolveProducedNupkgsAsync, isPackageIdTooLongError, PackService, signNupkgsAsync, PackagerParametersValidator, ProjectLoader, ProjectToolExecutor, ToolsFactory, ProjectPackager, PackageIdReader, readMemberPackageIdAsync2 };
|
|
4278
4333
|
|
|
4279
|
-
//# debugId=
|
|
4334
|
+
//# debugId=C48331433D7074A564756E2164756E21
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isUnpackableProjectTypeError2,
|
|
3
3
|
ensurePackagerTools2
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-dd937g7k.js";
|
|
5
5
|
import {
|
|
6
6
|
toolVerbForProjectType2
|
|
7
7
|
} from "./packager-tool-qzcd5c9s.js";
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
8
|
+
import"./packager-tool-5p1vy335.js";
|
|
9
|
+
import"./packager-tool-devc4w73.js";
|
|
10
|
+
import"./packager-tool-xbfr6y2x.js";
|
|
11
|
+
import"./packager-tool-gb3dq79g.js";
|
|
12
|
+
import"./packager-tool-1db1wqdy.js";
|
|
13
13
|
import"./packager-tool-rj2d1g0w.js";
|
|
14
14
|
export {
|
|
15
15
|
ensurePackagerTools2 as ensurePackagerTools,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError,
|
|
3
3
|
httpStatusOf2
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
5
5
|
import {
|
|
6
6
|
Configuration2,
|
|
7
7
|
PipelinesApi,
|
|
8
8
|
DeploymentSearchTruncatedError,
|
|
9
9
|
searchDeploymentsPage,
|
|
10
10
|
classifyFeedSession2
|
|
11
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-tqe3m1xp.js";
|
|
12
12
|
import {
|
|
13
13
|
Configuration3,
|
|
14
14
|
DeploymentsApi2
|
|
15
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-46x80z85.js";
|
|
16
16
|
|
|
17
17
|
// src/services/deployment-search.ts
|
|
18
18
|
async function readDeploymentByKeyAsync2(auth, deploymentKey, options = {}) {
|
|
@@ -21,7 +21,7 @@ async function readDeploymentByKeyAsync2(auth, deploymentKey, options = {}) {
|
|
|
21
21
|
basePath: auth.basePath,
|
|
22
22
|
accessToken: auth.accessToken
|
|
23
23
|
}));
|
|
24
|
-
const [error, info] = await catchError(api.pipelinesGetDeploymentByKey({ key: deploymentKey }));
|
|
24
|
+
const [error, info] = await catchError(options.signal ? api.pipelinesGetDeploymentByKey({ key: deploymentKey }, { signal: options.signal }) : api.pipelinesGetDeploymentByKey({ key: deploymentKey }));
|
|
25
25
|
if (!error) {
|
|
26
26
|
return info ? fromPipelinesRecord(info) : undefined;
|
|
27
27
|
}
|
|
@@ -32,22 +32,27 @@ async function readDeploymentByKeyAsync2(auth, deploymentKey, options = {}) {
|
|
|
32
32
|
if (classifyFeedSession2(auth) !== "user") {
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
return readDeploymentByKeyViaSolutionsAsync(auth, deploymentKey, options.scope);
|
|
35
|
+
return readDeploymentByKeyViaSolutionsAsync(auth, deploymentKey, options.scope, options.signal);
|
|
36
36
|
}
|
|
37
37
|
function fromPipelinesRecord(info) {
|
|
38
38
|
return {
|
|
39
39
|
deploymentKey: info.deploymentKey,
|
|
40
|
+
deploymentName: info.deploymentName,
|
|
41
|
+
locationKey: info.locationKey ?? null,
|
|
40
42
|
operationStatus: info.operationStatus,
|
|
41
43
|
installedRootFolderKey: info.installedRootFolderKey,
|
|
42
44
|
source: "pipelines"
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
|
-
async function readDeploymentByKeyViaSolutionsAsync(auth, deploymentKey, scope) {
|
|
47
|
+
async function readDeploymentByKeyViaSolutionsAsync(auth, deploymentKey, scope, signal) {
|
|
46
48
|
const api = new DeploymentsApi2(new Configuration3({
|
|
47
49
|
basePath: auth.basePath,
|
|
48
50
|
accessToken: auth.accessToken
|
|
49
51
|
}));
|
|
50
|
-
const [error, row] = await catchError(api.deploymentsGetByKey({ deploymentKey },
|
|
52
|
+
const [error, row] = await catchError(api.deploymentsGetByKey({ deploymentKey }, signal ? async (context) => ({
|
|
53
|
+
...scope ? await scope(context) : {},
|
|
54
|
+
signal
|
|
55
|
+
}) : scope));
|
|
51
56
|
if (error) {
|
|
52
57
|
if (httpStatusOf2(error) === 404) {
|
|
53
58
|
return;
|
|
@@ -56,6 +61,7 @@ async function readDeploymentByKeyViaSolutionsAsync(auth, deploymentKey, scope)
|
|
|
56
61
|
}
|
|
57
62
|
return row ? {
|
|
58
63
|
deploymentKey: row.key,
|
|
64
|
+
deploymentName: row.name,
|
|
59
65
|
operationStatus: row.operationStatus,
|
|
60
66
|
installedRootFolderKey: row.installedRootFolderKey,
|
|
61
67
|
source: "solutions"
|
|
@@ -277,4 +283,4 @@ async function resolveInstalledFolder2(deployment, requested, resolveFolderByKey
|
|
|
277
283
|
|
|
278
284
|
export { readDeploymentByKeyAsync2, findDeploymentByName2, findLiveDeploymentByName2, isCompletedUninstall2, findDeploymentsByPackageName2, DeploymentSearchCapError2, findCurrentDeploymentAsync2, blocksRedeploy2, MAX_LISTED_DEPLOYMENTS2, formatExistingDeployments2, findDeploymentsByName2, findDeploymentBestEffort2, newestDeploymentRow2, isPipelineDeploymentNotFoundError2, interpretFailedDeployPoll2, mapOperationStatusToPipelineStatus2, deploymentToTerminalPipelineResult2, resolveInstalledFolder2 };
|
|
279
285
|
|
|
280
|
-
//# debugId=
|
|
286
|
+
//# debugId=A1AF8F28ACEEAC5664756E2164756E21
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectDimensions,
|
|
6
6
|
solutionIdentityProperties,
|
|
7
7
|
projectKey,
|
|
8
8
|
isProjectTelemetryDisabled
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-xbfr6y2x.js";
|
|
13
13
|
|
|
14
14
|
// src/services/solution-identity.ts
|
|
15
15
|
var MAX_METADATA_BYTES = 1024 * 1024;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError,
|
|
3
3
|
extractErrorDetails
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
5
5
|
import {
|
|
6
6
|
findDeploymentByName2,
|
|
7
|
-
findLiveDeploymentByName2
|
|
8
|
-
|
|
7
|
+
findLiveDeploymentByName2,
|
|
8
|
+
isCompletedUninstall2
|
|
9
|
+
} from "./packager-tool-rhg3mwkn.js";
|
|
9
10
|
import {
|
|
10
11
|
resolvePersonalWorkspace,
|
|
11
12
|
listSelectablePublishLocations,
|
|
12
13
|
folderKeyInitOverride2,
|
|
13
14
|
feedScopeInitOverride2
|
|
14
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-ewbkaecg.js";
|
|
15
16
|
|
|
16
17
|
// src/services/deployment-feed-locator.ts
|
|
17
18
|
var sweepResult = (location, skipped) => ({
|
|
@@ -66,7 +67,10 @@ async function nonTenantFeedsAsync(options) {
|
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
async function findDeploymentAcrossFeeds(auth, deploymentName, options) {
|
|
69
|
-
const
|
|
70
|
+
const uninstalled = options.uninstalled ?? "skip";
|
|
71
|
+
const find = uninstalled === "skip" ? findLiveDeploymentByName2 : findDeploymentByName2;
|
|
72
|
+
const defersToLive = (deployment) => uninstalled === "fallback" && isCompletedUninstall2(deployment);
|
|
73
|
+
let uninstallRecord;
|
|
70
74
|
const { selectedFeed } = options;
|
|
71
75
|
if (selectedFeed) {
|
|
72
76
|
const scope = feedScopeInitOverride2(selectedFeed);
|
|
@@ -94,7 +98,10 @@ async function findDeploymentAcrossFeeds(auth, deploymentName, options) {
|
|
|
94
98
|
]);
|
|
95
99
|
}
|
|
96
100
|
if (tenantMatch) {
|
|
97
|
-
|
|
101
|
+
if (!defersToLive(tenantMatch)) {
|
|
102
|
+
return sweepResult({ deployment: tenantMatch }, []);
|
|
103
|
+
}
|
|
104
|
+
uninstallRecord = { deployment: tenantMatch };
|
|
98
105
|
}
|
|
99
106
|
const { feeds, skipped } = await nonTenantFeedsAsync(options);
|
|
100
107
|
for (const feed of feeds) {
|
|
@@ -109,10 +116,13 @@ async function findDeploymentAcrossFeeds(auth, deploymentName, options) {
|
|
|
109
116
|
continue;
|
|
110
117
|
}
|
|
111
118
|
if (deployment) {
|
|
112
|
-
|
|
119
|
+
if (!defersToLive(deployment)) {
|
|
120
|
+
return sweepResult({ deployment, scope, feed }, skipped);
|
|
121
|
+
}
|
|
122
|
+
uninstallRecord ??= { deployment, scope, feed };
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
|
-
return sweepResult(
|
|
125
|
+
return sweepResult(uninstallRecord, skipped);
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
// src/services/incomplete-feed-sweep.ts
|
|
@@ -137,6 +147,12 @@ function describeSkippedFeed(feed) {
|
|
|
137
147
|
return feed.name ? `folder feed '${feed.name}'${noKey}` : `a folder feed${noKey}`;
|
|
138
148
|
}
|
|
139
149
|
}
|
|
150
|
+
function unsearchedFeedsNextStep(skipped) {
|
|
151
|
+
const feeds = skipped.map(describeSkippedFeed).join(", ");
|
|
152
|
+
const flags = oneFeedFlags(skipped);
|
|
153
|
+
const oneFeed = flags.length ? ` To look in one feed directly, pass ${flags.join(" or ")}.` : "";
|
|
154
|
+
return `This record shows the deployment uninstalled, but these feeds could not be searched and may hold a live deployment of the same name: ${feeds}.${oneFeed}`;
|
|
155
|
+
}
|
|
140
156
|
function retryAdvice(errorCode, retry, service) {
|
|
141
157
|
switch (errorCode) {
|
|
142
158
|
case "authentication_required":
|
|
@@ -188,6 +204,6 @@ async function reportIncompleteSweepAsync(deploymentName, skipped) {
|
|
|
188
204
|
};
|
|
189
205
|
}
|
|
190
206
|
|
|
191
|
-
export { findDeploymentAcrossFeeds, isNameOrFeedRefusal, INCOMPLETE_SWEEP_ADVICE, retryAdvice, reportIncompleteSweepAsync };
|
|
207
|
+
export { findDeploymentAcrossFeeds, isNameOrFeedRefusal, INCOMPLETE_SWEEP_ADVICE, unsearchedFeedsNextStep, retryAdvice, reportIncompleteSweepAsync };
|
|
192
208
|
|
|
193
|
-
//# debugId=
|
|
209
|
+
//# debugId=DF4C9765E5FEB83464756E2164756E21
|