@uipath/api-workflow-tool 1.198.0 → 1.199.0-preview.105
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/packager-tool.js +6 -4
- package/dist/tool.js +221 -50
- package/package.json +2 -2
package/dist/packager-tool.js
CHANGED
|
@@ -1583,10 +1583,12 @@ class ToolResult {
|
|
|
1583
1583
|
message;
|
|
1584
1584
|
packages;
|
|
1585
1585
|
details;
|
|
1586
|
-
|
|
1586
|
+
instructions;
|
|
1587
|
+
constructor(errorCode, message, packages = [], instructions) {
|
|
1587
1588
|
this.errorCode = errorCode;
|
|
1588
1589
|
this.message = message;
|
|
1589
1590
|
this.packages = packages;
|
|
1591
|
+
this.instructions = instructions;
|
|
1590
1592
|
}
|
|
1591
1593
|
get isSuccess() {
|
|
1592
1594
|
return this.errorCode === "SUCCESS";
|
|
@@ -1594,8 +1596,8 @@ class ToolResult {
|
|
|
1594
1596
|
static success() {
|
|
1595
1597
|
return new ToolResult("SUCCESS");
|
|
1596
1598
|
}
|
|
1597
|
-
static error(errorCode, message) {
|
|
1598
|
-
return new ToolResult(errorCode, message);
|
|
1599
|
+
static error(errorCode, message, instructions) {
|
|
1600
|
+
return new ToolResult(errorCode, message, [], instructions);
|
|
1599
1601
|
}
|
|
1600
1602
|
}
|
|
1601
1603
|
var OPERATE_FILE = "operate.json";
|
|
@@ -3296,4 +3298,4 @@ var toolsFactoryRepository2 = _global2[REGISTRY_KEY2];
|
|
|
3296
3298
|
// src/packager-tool.ts
|
|
3297
3299
|
toolsFactoryRepository2.registerProjectToolFactory(new ApiWorkflowToolFactory);
|
|
3298
3300
|
|
|
3299
|
-
//# debugId=
|
|
3301
|
+
//# debugId=1652D8E3C486789C64756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -22419,10 +22419,12 @@ class ToolResult2 {
|
|
|
22419
22419
|
message;
|
|
22420
22420
|
packages;
|
|
22421
22421
|
details;
|
|
22422
|
-
|
|
22422
|
+
instructions;
|
|
22423
|
+
constructor(errorCode2, message, packages = [], instructions) {
|
|
22423
22424
|
this.errorCode = errorCode2;
|
|
22424
22425
|
this.message = message;
|
|
22425
22426
|
this.packages = packages;
|
|
22427
|
+
this.instructions = instructions;
|
|
22426
22428
|
}
|
|
22427
22429
|
get isSuccess() {
|
|
22428
22430
|
return this.errorCode === "SUCCESS";
|
|
@@ -22430,8 +22432,8 @@ class ToolResult2 {
|
|
|
22430
22432
|
static success() {
|
|
22431
22433
|
return new ToolResult2("SUCCESS");
|
|
22432
22434
|
}
|
|
22433
|
-
static error(errorCode2, message) {
|
|
22434
|
-
return new ToolResult2(errorCode2, message);
|
|
22435
|
+
static error(errorCode2, message, instructions) {
|
|
22436
|
+
return new ToolResult2(errorCode2, message, [], instructions);
|
|
22435
22437
|
}
|
|
22436
22438
|
}
|
|
22437
22439
|
function escapeXml(str2) {
|
|
@@ -23424,9 +23426,11 @@ var init_de = __esm(() => {
|
|
|
23424
23426
|
validator: {
|
|
23425
23427
|
errors: {
|
|
23426
23428
|
destinationNotDefined: "Destination path is not defined",
|
|
23429
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23427
23430
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23428
23431
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23429
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
23432
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
23433
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
23430
23434
|
}
|
|
23431
23435
|
},
|
|
23432
23436
|
packager: {
|
|
@@ -23510,6 +23514,8 @@ var init_en = __esm(() => {
|
|
|
23510
23514
|
validator: {
|
|
23511
23515
|
errors: {
|
|
23512
23516
|
destinationNotDefined: "Destination path is not defined",
|
|
23517
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23518
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content.",
|
|
23513
23519
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23514
23520
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23515
23521
|
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
@@ -23596,9 +23602,11 @@ var init_es = __esm(() => {
|
|
|
23596
23602
|
validator: {
|
|
23597
23603
|
errors: {
|
|
23598
23604
|
destinationNotDefined: "Destination path is not defined",
|
|
23605
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23599
23606
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23600
23607
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23601
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
23608
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
23609
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
23602
23610
|
}
|
|
23603
23611
|
},
|
|
23604
23612
|
packager: {
|
|
@@ -23682,9 +23690,11 @@ var init_es_MX = __esm(() => {
|
|
|
23682
23690
|
validator: {
|
|
23683
23691
|
errors: {
|
|
23684
23692
|
destinationNotDefined: "Destination path is not defined",
|
|
23693
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23685
23694
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23686
23695
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23687
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
23696
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
23697
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
23688
23698
|
}
|
|
23689
23699
|
},
|
|
23690
23700
|
packager: {
|
|
@@ -23768,9 +23778,11 @@ var init_fr = __esm(() => {
|
|
|
23768
23778
|
validator: {
|
|
23769
23779
|
errors: {
|
|
23770
23780
|
destinationNotDefined: "Destination path is not defined",
|
|
23781
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23771
23782
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23772
23783
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23773
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
23784
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
23785
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
23774
23786
|
}
|
|
23775
23787
|
},
|
|
23776
23788
|
packager: {
|
|
@@ -23854,9 +23866,11 @@ var init_ja = __esm(() => {
|
|
|
23854
23866
|
validator: {
|
|
23855
23867
|
errors: {
|
|
23856
23868
|
destinationNotDefined: "Destination path is not defined",
|
|
23869
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23857
23870
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23858
23871
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23859
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
23872
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
23873
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
23860
23874
|
}
|
|
23861
23875
|
},
|
|
23862
23876
|
packager: {
|
|
@@ -23940,9 +23954,11 @@ var init_ko = __esm(() => {
|
|
|
23940
23954
|
validator: {
|
|
23941
23955
|
errors: {
|
|
23942
23956
|
destinationNotDefined: "Destination path is not defined",
|
|
23957
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
23943
23958
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
23944
23959
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
23945
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
23960
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
23961
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
23946
23962
|
}
|
|
23947
23963
|
},
|
|
23948
23964
|
packager: {
|
|
@@ -24026,9 +24042,11 @@ var init_pt = __esm(() => {
|
|
|
24026
24042
|
validator: {
|
|
24027
24043
|
errors: {
|
|
24028
24044
|
destinationNotDefined: "Destination path is not defined",
|
|
24045
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24029
24046
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24030
24047
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24031
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24048
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24049
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24032
24050
|
}
|
|
24033
24051
|
},
|
|
24034
24052
|
packager: {
|
|
@@ -24112,9 +24130,11 @@ var init_pt_BR = __esm(() => {
|
|
|
24112
24130
|
validator: {
|
|
24113
24131
|
errors: {
|
|
24114
24132
|
destinationNotDefined: "Destination path is not defined",
|
|
24133
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24115
24134
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24116
24135
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24117
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24136
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24137
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24118
24138
|
}
|
|
24119
24139
|
},
|
|
24120
24140
|
packager: {
|
|
@@ -24198,9 +24218,11 @@ var init_ro = __esm(() => {
|
|
|
24198
24218
|
validator: {
|
|
24199
24219
|
errors: {
|
|
24200
24220
|
destinationNotDefined: "Destination path is not defined",
|
|
24221
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24201
24222
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24202
24223
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24203
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24224
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24225
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24204
24226
|
}
|
|
24205
24227
|
},
|
|
24206
24228
|
packager: {
|
|
@@ -24284,9 +24306,11 @@ var init_ru = __esm(() => {
|
|
|
24284
24306
|
validator: {
|
|
24285
24307
|
errors: {
|
|
24286
24308
|
destinationNotDefined: "Destination path is not defined",
|
|
24309
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24287
24310
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24288
24311
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24289
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24312
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24313
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24290
24314
|
}
|
|
24291
24315
|
},
|
|
24292
24316
|
packager: {
|
|
@@ -24370,9 +24394,11 @@ var init_tr = __esm(() => {
|
|
|
24370
24394
|
validator: {
|
|
24371
24395
|
errors: {
|
|
24372
24396
|
destinationNotDefined: "Destination path is not defined",
|
|
24397
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24373
24398
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24374
24399
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24375
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24400
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24401
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24376
24402
|
}
|
|
24377
24403
|
},
|
|
24378
24404
|
packager: {
|
|
@@ -24456,9 +24482,11 @@ var init_zh_CN = __esm(() => {
|
|
|
24456
24482
|
validator: {
|
|
24457
24483
|
errors: {
|
|
24458
24484
|
destinationNotDefined: "Destination path is not defined",
|
|
24485
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24459
24486
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24460
24487
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24461
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24488
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24489
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24462
24490
|
}
|
|
24463
24491
|
},
|
|
24464
24492
|
packager: {
|
|
@@ -24542,9 +24570,11 @@ var init_zh_TW = __esm(() => {
|
|
|
24542
24570
|
validator: {
|
|
24543
24571
|
errors: {
|
|
24544
24572
|
destinationNotDefined: "Destination path is not defined",
|
|
24573
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24545
24574
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24546
24575
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24547
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24576
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24577
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24548
24578
|
}
|
|
24549
24579
|
},
|
|
24550
24580
|
packager: {
|
|
@@ -24628,9 +24658,11 @@ var init_zu = __esm(() => {
|
|
|
24628
24658
|
validator: {
|
|
24629
24659
|
errors: {
|
|
24630
24660
|
destinationNotDefined: "Destination path is not defined",
|
|
24661
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
24631
24662
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
24632
24663
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
24633
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
24664
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
24665
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
24634
24666
|
}
|
|
24635
24667
|
},
|
|
24636
24668
|
packager: {
|
|
@@ -34437,6 +34469,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
34437
34469
|
KNOWN_SKILL_NAMES2 = new Set(Object.keys(SKILL_ATTRIBUTION2));
|
|
34438
34470
|
COMMAND_ATTRIBUTION2 = commandAttribution2([
|
|
34439
34471
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
34472
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
34440
34473
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
34441
34474
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
34442
34475
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -36714,6 +36747,44 @@ class PackagerParametersValidator {
|
|
|
36714
36747
|
}
|
|
36715
36748
|
return ToolResult2.success();
|
|
36716
36749
|
}
|
|
36750
|
+
async validateDestinationOutsideProjectAsync(destinationPath, inputPath) {
|
|
36751
|
+
const projectDirectory = await this.resolveProjectDirectoryAsync(inputPath);
|
|
36752
|
+
if (!projectDirectory) {
|
|
36753
|
+
return ToolResult2.success();
|
|
36754
|
+
}
|
|
36755
|
+
const destination = this.fileSystem.path.resolve(destinationPath);
|
|
36756
|
+
if (!this.isSameOrInside(projectDirectory, destination)) {
|
|
36757
|
+
return ToolResult2.success();
|
|
36758
|
+
}
|
|
36759
|
+
const message = translate2.t("solutionpackager.validator.errors.destinationInsideProject", {
|
|
36760
|
+
destinationPath: destination,
|
|
36761
|
+
projectPath: projectDirectory
|
|
36762
|
+
});
|
|
36763
|
+
const instructions = translate2.t("solutionpackager.validator.errors.destinationInsideProjectInstruction");
|
|
36764
|
+
this.logger.error(message);
|
|
36765
|
+
return ToolResult2.error(ToolErrorCodes2.InternalError, message, instructions);
|
|
36766
|
+
}
|
|
36767
|
+
async resolveProjectDirectoryAsync(inputPath) {
|
|
36768
|
+
if (!inputPath) {
|
|
36769
|
+
return;
|
|
36770
|
+
}
|
|
36771
|
+
const resolved = this.fileSystem.path.resolve(inputPath);
|
|
36772
|
+
const stat3 = await this.fileSystem.stat(resolved);
|
|
36773
|
+
if (!stat3) {
|
|
36774
|
+
return;
|
|
36775
|
+
}
|
|
36776
|
+
return stat3.isDirectory() ? resolved : this.fileSystem.path.dirname(resolved);
|
|
36777
|
+
}
|
|
36778
|
+
isSameOrInside(parent, child) {
|
|
36779
|
+
const relative3 = this.fileSystem.path.relative(parent, child);
|
|
36780
|
+
if (relative3 === "") {
|
|
36781
|
+
return true;
|
|
36782
|
+
}
|
|
36783
|
+
if (this.fileSystem.path.isAbsolute(relative3)) {
|
|
36784
|
+
return false;
|
|
36785
|
+
}
|
|
36786
|
+
return relative3 !== ".." && !relative3.startsWith("../") && !relative3.startsWith("..\\");
|
|
36787
|
+
}
|
|
36717
36788
|
async validateGovernanceOptions(validateOptions) {
|
|
36718
36789
|
if (validateOptions.governanceFileType === "Default" /* Default */) {
|
|
36719
36790
|
if (validateOptions.governanceFilePath) {
|
|
@@ -36887,6 +36958,10 @@ var init_project_pack_options_validator = __esm(() => {
|
|
|
36887
36958
|
if (!destinationResult.isSuccess) {
|
|
36888
36959
|
return destinationResult;
|
|
36889
36960
|
}
|
|
36961
|
+
const containmentResult = await this.validateDestinationOutsideProjectAsync(options.destinationPath, options.inputPath);
|
|
36962
|
+
if (!containmentResult.isSuccess) {
|
|
36963
|
+
return containmentResult;
|
|
36964
|
+
}
|
|
36890
36965
|
return await super.validateAsync(options, cancellationToken);
|
|
36891
36966
|
}
|
|
36892
36967
|
};
|
|
@@ -37111,7 +37186,8 @@ class ProjectPackager {
|
|
|
37111
37186
|
outputType: options.outputType,
|
|
37112
37187
|
projectType: uiPathProject.Type
|
|
37113
37188
|
};
|
|
37114
|
-
|
|
37189
|
+
const context = this.createOperationContext(options, uiPathProject);
|
|
37190
|
+
return await this.projectExecutor.buildAsync(buildOptions, uiPathProject, context, cancellationToken);
|
|
37115
37191
|
}, cancellationToken);
|
|
37116
37192
|
}
|
|
37117
37193
|
async packProjectAsync(options, cancellationToken) {
|
|
@@ -37169,7 +37245,10 @@ class ProjectPackager {
|
|
|
37169
37245
|
dryRun: options.dryRun ?? false,
|
|
37170
37246
|
skipImports: options.skipImports ?? false
|
|
37171
37247
|
};
|
|
37172
|
-
const context =
|
|
37248
|
+
const context = {
|
|
37249
|
+
...this.createOperationContext(options, uiPathProject),
|
|
37250
|
+
lockKey: options.lockKey
|
|
37251
|
+
};
|
|
37173
37252
|
return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
|
|
37174
37253
|
}, cancellationToken);
|
|
37175
37254
|
}
|
|
@@ -43201,6 +43280,44 @@ class PackagerParametersValidator2 {
|
|
|
43201
43280
|
}
|
|
43202
43281
|
return ToolResult2.success();
|
|
43203
43282
|
}
|
|
43283
|
+
async validateDestinationOutsideProjectAsync(destinationPath, inputPath) {
|
|
43284
|
+
const projectDirectory = await this.resolveProjectDirectoryAsync(inputPath);
|
|
43285
|
+
if (!projectDirectory) {
|
|
43286
|
+
return ToolResult2.success();
|
|
43287
|
+
}
|
|
43288
|
+
const destination = this.fileSystem.path.resolve(destinationPath);
|
|
43289
|
+
if (!this.isSameOrInside(projectDirectory, destination)) {
|
|
43290
|
+
return ToolResult2.success();
|
|
43291
|
+
}
|
|
43292
|
+
const message = translate2.t("solutionpackager.validator.errors.destinationInsideProject", {
|
|
43293
|
+
destinationPath: destination,
|
|
43294
|
+
projectPath: projectDirectory
|
|
43295
|
+
});
|
|
43296
|
+
const instructions = translate2.t("solutionpackager.validator.errors.destinationInsideProjectInstruction");
|
|
43297
|
+
this.logger.error(message);
|
|
43298
|
+
return ToolResult2.error(ToolErrorCodes2.InternalError, message, instructions);
|
|
43299
|
+
}
|
|
43300
|
+
async resolveProjectDirectoryAsync(inputPath) {
|
|
43301
|
+
if (!inputPath) {
|
|
43302
|
+
return;
|
|
43303
|
+
}
|
|
43304
|
+
const resolved = this.fileSystem.path.resolve(inputPath);
|
|
43305
|
+
const stat22 = await this.fileSystem.stat(resolved);
|
|
43306
|
+
if (!stat22) {
|
|
43307
|
+
return;
|
|
43308
|
+
}
|
|
43309
|
+
return stat22.isDirectory() ? resolved : this.fileSystem.path.dirname(resolved);
|
|
43310
|
+
}
|
|
43311
|
+
isSameOrInside(parent, child) {
|
|
43312
|
+
const relative22 = this.fileSystem.path.relative(parent, child);
|
|
43313
|
+
if (relative22 === "") {
|
|
43314
|
+
return true;
|
|
43315
|
+
}
|
|
43316
|
+
if (this.fileSystem.path.isAbsolute(relative22)) {
|
|
43317
|
+
return false;
|
|
43318
|
+
}
|
|
43319
|
+
return relative22 !== ".." && !relative22.startsWith("../") && !relative22.startsWith("..\\");
|
|
43320
|
+
}
|
|
43204
43321
|
async validateGovernanceOptions(validateOptions) {
|
|
43205
43322
|
if (validateOptions.governanceFileType === "Default") {
|
|
43206
43323
|
if (validateOptions.governanceFilePath) {
|
|
@@ -43542,7 +43659,8 @@ class ProjectPackager2 {
|
|
|
43542
43659
|
outputType: options.outputType,
|
|
43543
43660
|
projectType: uiPathProject.Type
|
|
43544
43661
|
};
|
|
43545
|
-
|
|
43662
|
+
const context = this.createOperationContext(options, uiPathProject);
|
|
43663
|
+
return await this.projectExecutor.buildAsync(buildOptions, uiPathProject, context, cancellationToken);
|
|
43546
43664
|
}, cancellationToken);
|
|
43547
43665
|
}
|
|
43548
43666
|
async packProjectAsync(options, cancellationToken) {
|
|
@@ -43600,7 +43718,10 @@ class ProjectPackager2 {
|
|
|
43600
43718
|
dryRun: options.dryRun ?? false,
|
|
43601
43719
|
skipImports: options.skipImports ?? false
|
|
43602
43720
|
};
|
|
43603
|
-
const context =
|
|
43721
|
+
const context = {
|
|
43722
|
+
...this.createOperationContext(options, uiPathProject),
|
|
43723
|
+
lockKey: options.lockKey
|
|
43724
|
+
};
|
|
43604
43725
|
return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
|
|
43605
43726
|
}, cancellationToken);
|
|
43606
43727
|
}
|
|
@@ -46384,9 +46505,11 @@ var init_node2 = __esm(() => {
|
|
|
46384
46505
|
validator: {
|
|
46385
46506
|
errors: {
|
|
46386
46507
|
destinationNotDefined: "Destination path is not defined",
|
|
46508
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46387
46509
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46388
46510
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46389
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46511
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46512
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46390
46513
|
}
|
|
46391
46514
|
},
|
|
46392
46515
|
packager: {
|
|
@@ -46465,6 +46588,8 @@ var init_node2 = __esm(() => {
|
|
|
46465
46588
|
validator: {
|
|
46466
46589
|
errors: {
|
|
46467
46590
|
destinationNotDefined: "Destination path is not defined",
|
|
46591
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46592
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content.",
|
|
46468
46593
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46469
46594
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46470
46595
|
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
@@ -46546,9 +46671,11 @@ var init_node2 = __esm(() => {
|
|
|
46546
46671
|
validator: {
|
|
46547
46672
|
errors: {
|
|
46548
46673
|
destinationNotDefined: "Destination path is not defined",
|
|
46674
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46549
46675
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46550
46676
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46551
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46677
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46678
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46552
46679
|
}
|
|
46553
46680
|
},
|
|
46554
46681
|
packager: {
|
|
@@ -46627,9 +46754,11 @@ var init_node2 = __esm(() => {
|
|
|
46627
46754
|
validator: {
|
|
46628
46755
|
errors: {
|
|
46629
46756
|
destinationNotDefined: "Destination path is not defined",
|
|
46757
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46630
46758
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46631
46759
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46632
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46760
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46761
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46633
46762
|
}
|
|
46634
46763
|
},
|
|
46635
46764
|
packager: {
|
|
@@ -46708,9 +46837,11 @@ var init_node2 = __esm(() => {
|
|
|
46708
46837
|
validator: {
|
|
46709
46838
|
errors: {
|
|
46710
46839
|
destinationNotDefined: "Destination path is not defined",
|
|
46840
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46711
46841
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46712
46842
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46713
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46843
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46844
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46714
46845
|
}
|
|
46715
46846
|
},
|
|
46716
46847
|
packager: {
|
|
@@ -46789,9 +46920,11 @@ var init_node2 = __esm(() => {
|
|
|
46789
46920
|
validator: {
|
|
46790
46921
|
errors: {
|
|
46791
46922
|
destinationNotDefined: "Destination path is not defined",
|
|
46923
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46792
46924
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46793
46925
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46794
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46926
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46927
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46795
46928
|
}
|
|
46796
46929
|
},
|
|
46797
46930
|
packager: {
|
|
@@ -46870,9 +47003,11 @@ var init_node2 = __esm(() => {
|
|
|
46870
47003
|
validator: {
|
|
46871
47004
|
errors: {
|
|
46872
47005
|
destinationNotDefined: "Destination path is not defined",
|
|
47006
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46873
47007
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46874
47008
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46875
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47009
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47010
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46876
47011
|
}
|
|
46877
47012
|
},
|
|
46878
47013
|
packager: {
|
|
@@ -46951,9 +47086,11 @@ var init_node2 = __esm(() => {
|
|
|
46951
47086
|
validator: {
|
|
46952
47087
|
errors: {
|
|
46953
47088
|
destinationNotDefined: "Destination path is not defined",
|
|
47089
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46954
47090
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46955
47091
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46956
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47092
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47093
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46957
47094
|
}
|
|
46958
47095
|
},
|
|
46959
47096
|
packager: {
|
|
@@ -47032,9 +47169,11 @@ var init_node2 = __esm(() => {
|
|
|
47032
47169
|
validator: {
|
|
47033
47170
|
errors: {
|
|
47034
47171
|
destinationNotDefined: "Destination path is not defined",
|
|
47172
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47035
47173
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47036
47174
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47037
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47175
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47176
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47038
47177
|
}
|
|
47039
47178
|
},
|
|
47040
47179
|
packager: {
|
|
@@ -47113,9 +47252,11 @@ var init_node2 = __esm(() => {
|
|
|
47113
47252
|
validator: {
|
|
47114
47253
|
errors: {
|
|
47115
47254
|
destinationNotDefined: "Destination path is not defined",
|
|
47255
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47116
47256
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47117
47257
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47118
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47258
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47259
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47119
47260
|
}
|
|
47120
47261
|
},
|
|
47121
47262
|
packager: {
|
|
@@ -47194,9 +47335,11 @@ var init_node2 = __esm(() => {
|
|
|
47194
47335
|
validator: {
|
|
47195
47336
|
errors: {
|
|
47196
47337
|
destinationNotDefined: "Destination path is not defined",
|
|
47338
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47197
47339
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47198
47340
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47199
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47341
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47342
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47200
47343
|
}
|
|
47201
47344
|
},
|
|
47202
47345
|
packager: {
|
|
@@ -47275,9 +47418,11 @@ var init_node2 = __esm(() => {
|
|
|
47275
47418
|
validator: {
|
|
47276
47419
|
errors: {
|
|
47277
47420
|
destinationNotDefined: "Destination path is not defined",
|
|
47421
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47278
47422
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47279
47423
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47280
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47424
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47425
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47281
47426
|
}
|
|
47282
47427
|
},
|
|
47283
47428
|
packager: {
|
|
@@ -47356,9 +47501,11 @@ var init_node2 = __esm(() => {
|
|
|
47356
47501
|
validator: {
|
|
47357
47502
|
errors: {
|
|
47358
47503
|
destinationNotDefined: "Destination path is not defined",
|
|
47504
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47359
47505
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47360
47506
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47361
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47507
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47508
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47362
47509
|
}
|
|
47363
47510
|
},
|
|
47364
47511
|
packager: {
|
|
@@ -47437,9 +47584,11 @@ var init_node2 = __esm(() => {
|
|
|
47437
47584
|
validator: {
|
|
47438
47585
|
errors: {
|
|
47439
47586
|
destinationNotDefined: "Destination path is not defined",
|
|
47587
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47440
47588
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47441
47589
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47442
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47590
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47591
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47443
47592
|
}
|
|
47444
47593
|
},
|
|
47445
47594
|
packager: {
|
|
@@ -47518,9 +47667,11 @@ var init_node2 = __esm(() => {
|
|
|
47518
47667
|
validator: {
|
|
47519
47668
|
errors: {
|
|
47520
47669
|
destinationNotDefined: "Destination path is not defined",
|
|
47670
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47521
47671
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47522
47672
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47523
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47673
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47674
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47524
47675
|
}
|
|
47525
47676
|
},
|
|
47526
47677
|
packager: {
|
|
@@ -50499,6 +50650,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50499
50650
|
KNOWN_SKILL_NAMES3 = new Set(Object.keys(SKILL_ATTRIBUTION3));
|
|
50500
50651
|
COMMAND_ATTRIBUTION3 = commandAttribution3([
|
|
50501
50652
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
50653
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
50502
50654
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
50503
50655
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
50504
50656
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -50680,6 +50832,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50680
50832
|
ProjectCleanupOptions = class ProjectCleanupOptions extends PackagerParameters2 {
|
|
50681
50833
|
dryRun = false;
|
|
50682
50834
|
skipImports = false;
|
|
50835
|
+
lockKey;
|
|
50683
50836
|
};
|
|
50684
50837
|
ProjectPackOptions = class ProjectPackOptions extends ProjectBuildOptions {
|
|
50685
50838
|
destinationPath;
|
|
@@ -50720,6 +50873,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50720
50873
|
if (!destinationResult.isSuccess) {
|
|
50721
50874
|
return destinationResult;
|
|
50722
50875
|
}
|
|
50876
|
+
const containmentResult = await this.validateDestinationOutsideProjectAsync(options.destinationPath, options.inputPath);
|
|
50877
|
+
if (!containmentResult.isSuccess) {
|
|
50878
|
+
return containmentResult;
|
|
50879
|
+
}
|
|
50723
50880
|
return await super.validateAsync(options, cancellationToken);
|
|
50724
50881
|
}
|
|
50725
50882
|
};
|
|
@@ -50777,7 +50934,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50777
50934
|
package_default3 = {
|
|
50778
50935
|
name: "@uipath/project-packager",
|
|
50779
50936
|
license: "MIT",
|
|
50780
|
-
version: "1.
|
|
50937
|
+
version: "1.199.0-preview.105",
|
|
50781
50938
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
50782
50939
|
type: "module",
|
|
50783
50940
|
main: "./dist/index.js",
|
|
@@ -50908,6 +51065,7 @@ var init_project_cleanup_options = __esm(() => {
|
|
|
50908
51065
|
ProjectCleanupOptions2 = class ProjectCleanupOptions2 extends PackagerParameters {
|
|
50909
51066
|
dryRun = false;
|
|
50910
51067
|
skipImports = false;
|
|
51068
|
+
lockKey;
|
|
50911
51069
|
};
|
|
50912
51070
|
});
|
|
50913
51071
|
|
|
@@ -51171,7 +51329,7 @@ var init_package = __esm(() => {
|
|
|
51171
51329
|
package_default4 = {
|
|
51172
51330
|
name: "@uipath/project-packager",
|
|
51173
51331
|
license: "MIT",
|
|
51174
|
-
version: "1.
|
|
51332
|
+
version: "1.199.0-preview.105",
|
|
51175
51333
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
51176
51334
|
type: "module",
|
|
51177
51335
|
main: "./dist/index.js",
|
|
@@ -80625,7 +80783,7 @@ import"./packager-tool.js";
|
|
|
80625
80783
|
var package_default = {
|
|
80626
80784
|
name: "@uipath/api-workflow-tool",
|
|
80627
80785
|
license: "MIT",
|
|
80628
|
-
version: "1.
|
|
80786
|
+
version: "1.199.0-preview.105",
|
|
80629
80787
|
description: "Run UiPath API Workflows locally.",
|
|
80630
80788
|
private: false,
|
|
80631
80789
|
repository: {
|
|
@@ -87522,6 +87680,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
87522
87680
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
87523
87681
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
87524
87682
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
87683
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
87525
87684
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
87526
87685
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
87527
87686
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -88445,7 +88604,7 @@ class TextApiResponse {
|
|
|
88445
88604
|
var package_default2 = {
|
|
88446
88605
|
name: "@uipath/integrationservice-sdk",
|
|
88447
88606
|
license: "MIT",
|
|
88448
|
-
version: "1.
|
|
88607
|
+
version: "1.199.0-preview.105",
|
|
88449
88608
|
repository: {
|
|
88450
88609
|
type: "git",
|
|
88451
88610
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -94232,6 +94391,7 @@ var resolveConfigAsync = async ({
|
|
|
94232
94391
|
customAuthority,
|
|
94233
94392
|
customClientId,
|
|
94234
94393
|
customClientSecret,
|
|
94394
|
+
customClientAssertion,
|
|
94235
94395
|
customScopes
|
|
94236
94396
|
} = {}) => {
|
|
94237
94397
|
const fileAuth = getAuthFileConfig();
|
|
@@ -94257,7 +94417,7 @@ var resolveConfigAsync = async ({
|
|
|
94257
94417
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
94258
94418
|
clientSecret = fileAuth.clientSecret;
|
|
94259
94419
|
}
|
|
94260
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
94420
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
94261
94421
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
94262
94422
|
return {
|
|
94263
94423
|
clientId,
|
|
@@ -95375,7 +95535,6 @@ var getAuthContext = async (options = {}) => {
|
|
|
95375
95535
|
tenantName
|
|
95376
95536
|
};
|
|
95377
95537
|
};
|
|
95378
|
-
|
|
95379
95538
|
// ../auth/src/index.ts
|
|
95380
95539
|
init_constants();
|
|
95381
95540
|
|
|
@@ -96055,6 +96214,12 @@ function parseConfig(activity) {
|
|
|
96055
96214
|
|
|
96056
96215
|
// src/services/registry-service.ts
|
|
96057
96216
|
var HTTP_CONNECTOR_KEY = "uipath-uipath-http";
|
|
96217
|
+
var ACTIVITY_EXCLUSIONS = [
|
|
96218
|
+
(c) => c.connectorKey === "uipath-uipath-dataservice" && /_V3$/i.test(c.objectName ?? "")
|
|
96219
|
+
];
|
|
96220
|
+
function isExcluded(config) {
|
|
96221
|
+
return ACTIVITY_EXCLUSIONS.some((match) => match(config));
|
|
96222
|
+
}
|
|
96058
96223
|
function isHiddenParameter(p) {
|
|
96059
96224
|
return p.design?.isHidden === true;
|
|
96060
96225
|
}
|
|
@@ -96072,6 +96237,8 @@ async function searchActivities(keyword, limit = 50) {
|
|
|
96072
96237
|
const config = parseConfig(activity);
|
|
96073
96238
|
if (!config)
|
|
96074
96239
|
continue;
|
|
96240
|
+
if (isExcluded(config))
|
|
96241
|
+
continue;
|
|
96075
96242
|
const haystack = [
|
|
96076
96243
|
activity.displayName,
|
|
96077
96244
|
activity.description,
|
|
@@ -96103,6 +96270,8 @@ async function findActivityByGuid(activityTypeId) {
|
|
|
96103
96270
|
const config = parseConfig(activity);
|
|
96104
96271
|
if (!config)
|
|
96105
96272
|
return null;
|
|
96273
|
+
if (isExcluded(config))
|
|
96274
|
+
return null;
|
|
96106
96275
|
return { activity, config };
|
|
96107
96276
|
}
|
|
96108
96277
|
async function fetchIsEnrichment(args) {
|
|
@@ -97726,7 +97895,7 @@ async function runPackagerCommand(opts, config) {
|
|
|
97726
97895
|
OutputFormatter.success(new SuccessOutput(config.label, data));
|
|
97727
97896
|
return true;
|
|
97728
97897
|
}
|
|
97729
|
-
OutputFormatter.error(new FailureOutput(`${config.label} failed`, result.message ?? (result.errorCode ? `Error code: ${result.errorCode}` : "Unknown error"), config.hint));
|
|
97898
|
+
OutputFormatter.error(new FailureOutput(`${config.label} failed`, result.message ?? (result.errorCode ? `Error code: ${result.errorCode}` : "Unknown error"), result.instructions ?? config.hint));
|
|
97730
97899
|
return false;
|
|
97731
97900
|
}
|
|
97732
97901
|
|
|
@@ -97984,7 +98153,7 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
|
|
|
97984
98153
|
var package_default5 = {
|
|
97985
98154
|
name: "@uipath/solution-sdk",
|
|
97986
98155
|
license: "MIT",
|
|
97987
|
-
version: "1.
|
|
98156
|
+
version: "1.199.0-preview.105",
|
|
97988
98157
|
repository: {
|
|
97989
98158
|
type: "git",
|
|
97990
98159
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -98181,7 +98350,7 @@ ${readDirError.message}`)
|
|
|
98181
98350
|
registration: {
|
|
98182
98351
|
Status: "Skipped",
|
|
98183
98352
|
Message: "Project registration skipped.",
|
|
98184
|
-
Instructions: `Found multiple .uipx files in ${currentDir}: ${solutionFiles.join(", ")}. Run 'uip solution
|
|
98353
|
+
Instructions: `Found multiple .uipx files in ${currentDir}: ${solutionFiles.join(", ")}. Run 'uip solution projects add "${projectDir}" <solution.uipx>' to choose one.`
|
|
98185
98354
|
}
|
|
98186
98355
|
};
|
|
98187
98356
|
}
|
|
@@ -98292,7 +98461,7 @@ async function readSolutionManifest(fs11, solutionFile) {
|
|
|
98292
98461
|
const projectRelativePath = readString(project.ProjectRelativePath);
|
|
98293
98462
|
if (!projectRelativePath) {
|
|
98294
98463
|
return [
|
|
98295
|
-
new Error(`Invalid solution file: Projects[${index}] is missing ProjectRelativePath. Use 'uip solution
|
|
98464
|
+
new Error(`Invalid solution file: Projects[${index}] is missing ProjectRelativePath. Use 'uip solution projects add' to repair the manifest.`),
|
|
98296
98465
|
null
|
|
98297
98466
|
];
|
|
98298
98467
|
}
|
|
@@ -98319,7 +98488,7 @@ function buildRegistrationSuccessInstructions(solutionDir) {
|
|
|
98319
98488
|
function buildRegistrationFailureInstructions(projectDir, details) {
|
|
98320
98489
|
return [
|
|
98321
98490
|
"Automatic solution registration could not complete.",
|
|
98322
|
-
`Run 'uip solution
|
|
98491
|
+
`Run 'uip solution projects add "${projectDir}" <solution.uipx>' after checking the project and solution files.`,
|
|
98323
98492
|
`Details: ${details}`
|
|
98324
98493
|
].join(`
|
|
98325
98494
|
`);
|
|
@@ -98328,14 +98497,14 @@ function buildStandaloneInstructions(projectDir) {
|
|
|
98328
98497
|
return [
|
|
98329
98498
|
"No parent solution was found by walking ancestor directories.",
|
|
98330
98499
|
"Studio Web upload, `flow debug`, and packaging require an enclosing solution.",
|
|
98331
|
-
`To link this project to a solution, run 'uip solution init "<SolutionName>"' then 'uip solution
|
|
98500
|
+
`To link this project to a solution, run 'uip solution init "<SolutionName>"' then 'uip solution projects add "${projectDir}" <SolutionName>.uipx'.`
|
|
98332
98501
|
].join(`
|
|
98333
98502
|
`);
|
|
98334
98503
|
}
|
|
98335
98504
|
function buildOptedOutInstructions(projectDir) {
|
|
98336
98505
|
return [
|
|
98337
98506
|
"Automatic solution registration was skipped because --skip-solution-registration was passed.",
|
|
98338
|
-
`To register this project later, run 'uip solution
|
|
98507
|
+
`To register this project later, run 'uip solution projects add "${projectDir}" <SolutionName>.uipx' from within the solution.`
|
|
98339
98508
|
].join(`
|
|
98340
98509
|
`);
|
|
98341
98510
|
}
|
|
@@ -98702,6 +98871,7 @@ var registerInitCommand = (program4) => {
|
|
|
98702
98871
|
};
|
|
98703
98872
|
|
|
98704
98873
|
// src/commands/pack.ts
|
|
98874
|
+
var DEFAULT_PACKAGE_VERSION = "1.0.0";
|
|
98705
98875
|
var PACK_EXAMPLES = [
|
|
98706
98876
|
{
|
|
98707
98877
|
Description: "Pack an API Workflow project into a .nupkg",
|
|
@@ -98725,9 +98895,10 @@ var registerPackCommand = (program4) => {
|
|
|
98725
98895
|
hint: "Check project path and pack configuration.",
|
|
98726
98896
|
execute: async (packager, options, opts2) => {
|
|
98727
98897
|
options.destinationPath = opts2.destinationPath;
|
|
98898
|
+
const version = opts2.packageVersion?.trim() || DEFAULT_PACKAGE_VERSION;
|
|
98728
98899
|
options.package = {
|
|
98729
98900
|
id: opts2.packageId ?? "",
|
|
98730
|
-
version
|
|
98901
|
+
version,
|
|
98731
98902
|
...mapPackageMetadataOptions(opts2)
|
|
98732
98903
|
};
|
|
98733
98904
|
if (opts2.signingCertificatePath) {
|
|
@@ -100273,4 +100444,4 @@ export {
|
|
|
100273
100444
|
metadata
|
|
100274
100445
|
};
|
|
100275
100446
|
|
|
100276
|
-
//# debugId=
|
|
100447
|
+
//# debugId=4ED569EC3E3D9D6264756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/api-workflow-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.199.0-preview.105",
|
|
5
5
|
"description": "Run UiPath API Workflows locally.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "30a83200f41e8bb994929322e33176b4355f6707"
|
|
27
27
|
}
|