@uipath/api-workflow-tool 1.198.0-preview.90 → 1.199.0-preview.91
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: {
|
|
@@ -34301,6 +34333,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
34301
34333
|
KNOWN_SKILL_NAMES2 = new Set(Object.keys(SKILL_ATTRIBUTION2));
|
|
34302
34334
|
COMMAND_ATTRIBUTION2 = commandAttribution2([
|
|
34303
34335
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
34336
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
34304
34337
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
34305
34338
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
34306
34339
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -36615,6 +36648,44 @@ class PackagerParametersValidator {
|
|
|
36615
36648
|
}
|
|
36616
36649
|
return ToolResult2.success();
|
|
36617
36650
|
}
|
|
36651
|
+
async validateDestinationOutsideProjectAsync(destinationPath, inputPath) {
|
|
36652
|
+
const projectDirectory = await this.resolveProjectDirectoryAsync(inputPath);
|
|
36653
|
+
if (!projectDirectory) {
|
|
36654
|
+
return ToolResult2.success();
|
|
36655
|
+
}
|
|
36656
|
+
const destination = this.fileSystem.path.resolve(destinationPath);
|
|
36657
|
+
if (!this.isSameOrInside(projectDirectory, destination)) {
|
|
36658
|
+
return ToolResult2.success();
|
|
36659
|
+
}
|
|
36660
|
+
const message = translate2.t("solutionpackager.validator.errors.destinationInsideProject", {
|
|
36661
|
+
destinationPath: destination,
|
|
36662
|
+
projectPath: projectDirectory
|
|
36663
|
+
});
|
|
36664
|
+
const instructions = translate2.t("solutionpackager.validator.errors.destinationInsideProjectInstruction");
|
|
36665
|
+
this.logger.error(message);
|
|
36666
|
+
return ToolResult2.error(ToolErrorCodes2.InternalError, message, instructions);
|
|
36667
|
+
}
|
|
36668
|
+
async resolveProjectDirectoryAsync(inputPath) {
|
|
36669
|
+
if (!inputPath) {
|
|
36670
|
+
return;
|
|
36671
|
+
}
|
|
36672
|
+
const resolved = this.fileSystem.path.resolve(inputPath);
|
|
36673
|
+
const stat3 = await this.fileSystem.stat(resolved);
|
|
36674
|
+
if (!stat3) {
|
|
36675
|
+
return;
|
|
36676
|
+
}
|
|
36677
|
+
return stat3.isDirectory() ? resolved : this.fileSystem.path.dirname(resolved);
|
|
36678
|
+
}
|
|
36679
|
+
isSameOrInside(parent, child) {
|
|
36680
|
+
const relative3 = this.fileSystem.path.relative(parent, child);
|
|
36681
|
+
if (relative3 === "") {
|
|
36682
|
+
return true;
|
|
36683
|
+
}
|
|
36684
|
+
if (this.fileSystem.path.isAbsolute(relative3)) {
|
|
36685
|
+
return false;
|
|
36686
|
+
}
|
|
36687
|
+
return relative3 !== ".." && !relative3.startsWith("../") && !relative3.startsWith("..\\");
|
|
36688
|
+
}
|
|
36618
36689
|
async validateGovernanceOptions(validateOptions) {
|
|
36619
36690
|
if (validateOptions.governanceFileType === "Default" /* Default */) {
|
|
36620
36691
|
if (validateOptions.governanceFilePath) {
|
|
@@ -36788,6 +36859,10 @@ var init_project_pack_options_validator = __esm(() => {
|
|
|
36788
36859
|
if (!destinationResult.isSuccess) {
|
|
36789
36860
|
return destinationResult;
|
|
36790
36861
|
}
|
|
36862
|
+
const containmentResult = await this.validateDestinationOutsideProjectAsync(options.destinationPath, options.inputPath);
|
|
36863
|
+
if (!containmentResult.isSuccess) {
|
|
36864
|
+
return containmentResult;
|
|
36865
|
+
}
|
|
36791
36866
|
return await super.validateAsync(options, cancellationToken);
|
|
36792
36867
|
}
|
|
36793
36868
|
};
|
|
@@ -37012,7 +37087,8 @@ class ProjectPackager {
|
|
|
37012
37087
|
outputType: options.outputType,
|
|
37013
37088
|
projectType: uiPathProject.Type
|
|
37014
37089
|
};
|
|
37015
|
-
|
|
37090
|
+
const context = this.createOperationContext(options, uiPathProject);
|
|
37091
|
+
return await this.projectExecutor.buildAsync(buildOptions, uiPathProject, context, cancellationToken);
|
|
37016
37092
|
}, cancellationToken);
|
|
37017
37093
|
}
|
|
37018
37094
|
async packProjectAsync(options, cancellationToken) {
|
|
@@ -37070,7 +37146,10 @@ class ProjectPackager {
|
|
|
37070
37146
|
dryRun: options.dryRun ?? false,
|
|
37071
37147
|
skipImports: options.skipImports ?? false
|
|
37072
37148
|
};
|
|
37073
|
-
const context =
|
|
37149
|
+
const context = {
|
|
37150
|
+
...this.createOperationContext(options, uiPathProject),
|
|
37151
|
+
lockKey: options.lockKey
|
|
37152
|
+
};
|
|
37074
37153
|
return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
|
|
37075
37154
|
}, cancellationToken);
|
|
37076
37155
|
}
|
|
@@ -43011,6 +43090,44 @@ class PackagerParametersValidator2 {
|
|
|
43011
43090
|
}
|
|
43012
43091
|
return ToolResult2.success();
|
|
43013
43092
|
}
|
|
43093
|
+
async validateDestinationOutsideProjectAsync(destinationPath, inputPath) {
|
|
43094
|
+
const projectDirectory = await this.resolveProjectDirectoryAsync(inputPath);
|
|
43095
|
+
if (!projectDirectory) {
|
|
43096
|
+
return ToolResult2.success();
|
|
43097
|
+
}
|
|
43098
|
+
const destination = this.fileSystem.path.resolve(destinationPath);
|
|
43099
|
+
if (!this.isSameOrInside(projectDirectory, destination)) {
|
|
43100
|
+
return ToolResult2.success();
|
|
43101
|
+
}
|
|
43102
|
+
const message = translate2.t("solutionpackager.validator.errors.destinationInsideProject", {
|
|
43103
|
+
destinationPath: destination,
|
|
43104
|
+
projectPath: projectDirectory
|
|
43105
|
+
});
|
|
43106
|
+
const instructions = translate2.t("solutionpackager.validator.errors.destinationInsideProjectInstruction");
|
|
43107
|
+
this.logger.error(message);
|
|
43108
|
+
return ToolResult2.error(ToolErrorCodes2.InternalError, message, instructions);
|
|
43109
|
+
}
|
|
43110
|
+
async resolveProjectDirectoryAsync(inputPath) {
|
|
43111
|
+
if (!inputPath) {
|
|
43112
|
+
return;
|
|
43113
|
+
}
|
|
43114
|
+
const resolved = this.fileSystem.path.resolve(inputPath);
|
|
43115
|
+
const stat22 = await this.fileSystem.stat(resolved);
|
|
43116
|
+
if (!stat22) {
|
|
43117
|
+
return;
|
|
43118
|
+
}
|
|
43119
|
+
return stat22.isDirectory() ? resolved : this.fileSystem.path.dirname(resolved);
|
|
43120
|
+
}
|
|
43121
|
+
isSameOrInside(parent, child) {
|
|
43122
|
+
const relative22 = this.fileSystem.path.relative(parent, child);
|
|
43123
|
+
if (relative22 === "") {
|
|
43124
|
+
return true;
|
|
43125
|
+
}
|
|
43126
|
+
if (this.fileSystem.path.isAbsolute(relative22)) {
|
|
43127
|
+
return false;
|
|
43128
|
+
}
|
|
43129
|
+
return relative22 !== ".." && !relative22.startsWith("../") && !relative22.startsWith("..\\");
|
|
43130
|
+
}
|
|
43014
43131
|
async validateGovernanceOptions(validateOptions) {
|
|
43015
43132
|
if (validateOptions.governanceFileType === "Default") {
|
|
43016
43133
|
if (validateOptions.governanceFilePath) {
|
|
@@ -43352,7 +43469,8 @@ class ProjectPackager2 {
|
|
|
43352
43469
|
outputType: options.outputType,
|
|
43353
43470
|
projectType: uiPathProject.Type
|
|
43354
43471
|
};
|
|
43355
|
-
|
|
43472
|
+
const context = this.createOperationContext(options, uiPathProject);
|
|
43473
|
+
return await this.projectExecutor.buildAsync(buildOptions, uiPathProject, context, cancellationToken);
|
|
43356
43474
|
}, cancellationToken);
|
|
43357
43475
|
}
|
|
43358
43476
|
async packProjectAsync(options, cancellationToken) {
|
|
@@ -43410,7 +43528,10 @@ class ProjectPackager2 {
|
|
|
43410
43528
|
dryRun: options.dryRun ?? false,
|
|
43411
43529
|
skipImports: options.skipImports ?? false
|
|
43412
43530
|
};
|
|
43413
|
-
const context =
|
|
43531
|
+
const context = {
|
|
43532
|
+
...this.createOperationContext(options, uiPathProject),
|
|
43533
|
+
lockKey: options.lockKey
|
|
43534
|
+
};
|
|
43414
43535
|
return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
|
|
43415
43536
|
}, cancellationToken);
|
|
43416
43537
|
}
|
|
@@ -46194,9 +46315,11 @@ var init_node2 = __esm(() => {
|
|
|
46194
46315
|
validator: {
|
|
46195
46316
|
errors: {
|
|
46196
46317
|
destinationNotDefined: "Destination path is not defined",
|
|
46318
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46197
46319
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46198
46320
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46199
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46321
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46322
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46200
46323
|
}
|
|
46201
46324
|
},
|
|
46202
46325
|
packager: {
|
|
@@ -46275,6 +46398,8 @@ var init_node2 = __esm(() => {
|
|
|
46275
46398
|
validator: {
|
|
46276
46399
|
errors: {
|
|
46277
46400
|
destinationNotDefined: "Destination path is not defined",
|
|
46401
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46402
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content.",
|
|
46278
46403
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46279
46404
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46280
46405
|
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
@@ -46356,9 +46481,11 @@ var init_node2 = __esm(() => {
|
|
|
46356
46481
|
validator: {
|
|
46357
46482
|
errors: {
|
|
46358
46483
|
destinationNotDefined: "Destination path is not defined",
|
|
46484
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46359
46485
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46360
46486
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46361
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46487
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46488
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46362
46489
|
}
|
|
46363
46490
|
},
|
|
46364
46491
|
packager: {
|
|
@@ -46437,9 +46564,11 @@ var init_node2 = __esm(() => {
|
|
|
46437
46564
|
validator: {
|
|
46438
46565
|
errors: {
|
|
46439
46566
|
destinationNotDefined: "Destination path is not defined",
|
|
46567
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46440
46568
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46441
46569
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46442
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46570
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46571
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46443
46572
|
}
|
|
46444
46573
|
},
|
|
46445
46574
|
packager: {
|
|
@@ -46518,9 +46647,11 @@ var init_node2 = __esm(() => {
|
|
|
46518
46647
|
validator: {
|
|
46519
46648
|
errors: {
|
|
46520
46649
|
destinationNotDefined: "Destination path is not defined",
|
|
46650
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46521
46651
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46522
46652
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46523
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46653
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46654
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46524
46655
|
}
|
|
46525
46656
|
},
|
|
46526
46657
|
packager: {
|
|
@@ -46599,9 +46730,11 @@ var init_node2 = __esm(() => {
|
|
|
46599
46730
|
validator: {
|
|
46600
46731
|
errors: {
|
|
46601
46732
|
destinationNotDefined: "Destination path is not defined",
|
|
46733
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46602
46734
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46603
46735
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46604
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46736
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46737
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46605
46738
|
}
|
|
46606
46739
|
},
|
|
46607
46740
|
packager: {
|
|
@@ -46680,9 +46813,11 @@ var init_node2 = __esm(() => {
|
|
|
46680
46813
|
validator: {
|
|
46681
46814
|
errors: {
|
|
46682
46815
|
destinationNotDefined: "Destination path is not defined",
|
|
46816
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46683
46817
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46684
46818
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46685
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46819
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46820
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46686
46821
|
}
|
|
46687
46822
|
},
|
|
46688
46823
|
packager: {
|
|
@@ -46761,9 +46896,11 @@ var init_node2 = __esm(() => {
|
|
|
46761
46896
|
validator: {
|
|
46762
46897
|
errors: {
|
|
46763
46898
|
destinationNotDefined: "Destination path is not defined",
|
|
46899
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46764
46900
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46765
46901
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46766
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46902
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46903
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46767
46904
|
}
|
|
46768
46905
|
},
|
|
46769
46906
|
packager: {
|
|
@@ -46842,9 +46979,11 @@ var init_node2 = __esm(() => {
|
|
|
46842
46979
|
validator: {
|
|
46843
46980
|
errors: {
|
|
46844
46981
|
destinationNotDefined: "Destination path is not defined",
|
|
46982
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46845
46983
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46846
46984
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46847
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
46985
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
46986
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46848
46987
|
}
|
|
46849
46988
|
},
|
|
46850
46989
|
packager: {
|
|
@@ -46923,9 +47062,11 @@ var init_node2 = __esm(() => {
|
|
|
46923
47062
|
validator: {
|
|
46924
47063
|
errors: {
|
|
46925
47064
|
destinationNotDefined: "Destination path is not defined",
|
|
47065
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
46926
47066
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
46927
47067
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
46928
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47068
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47069
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
46929
47070
|
}
|
|
46930
47071
|
},
|
|
46931
47072
|
packager: {
|
|
@@ -47004,9 +47145,11 @@ var init_node2 = __esm(() => {
|
|
|
47004
47145
|
validator: {
|
|
47005
47146
|
errors: {
|
|
47006
47147
|
destinationNotDefined: "Destination path is not defined",
|
|
47148
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47007
47149
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47008
47150
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47009
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47151
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47152
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47010
47153
|
}
|
|
47011
47154
|
},
|
|
47012
47155
|
packager: {
|
|
@@ -47085,9 +47228,11 @@ var init_node2 = __esm(() => {
|
|
|
47085
47228
|
validator: {
|
|
47086
47229
|
errors: {
|
|
47087
47230
|
destinationNotDefined: "Destination path is not defined",
|
|
47231
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47088
47232
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47089
47233
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47090
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47234
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47235
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47091
47236
|
}
|
|
47092
47237
|
},
|
|
47093
47238
|
packager: {
|
|
@@ -47166,9 +47311,11 @@ var init_node2 = __esm(() => {
|
|
|
47166
47311
|
validator: {
|
|
47167
47312
|
errors: {
|
|
47168
47313
|
destinationNotDefined: "Destination path is not defined",
|
|
47314
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47169
47315
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47170
47316
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47171
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47317
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47318
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47172
47319
|
}
|
|
47173
47320
|
},
|
|
47174
47321
|
packager: {
|
|
@@ -47247,9 +47394,11 @@ var init_node2 = __esm(() => {
|
|
|
47247
47394
|
validator: {
|
|
47248
47395
|
errors: {
|
|
47249
47396
|
destinationNotDefined: "Destination path is not defined",
|
|
47397
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47250
47398
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47251
47399
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47252
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47400
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47401
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47253
47402
|
}
|
|
47254
47403
|
},
|
|
47255
47404
|
packager: {
|
|
@@ -47328,9 +47477,11 @@ var init_node2 = __esm(() => {
|
|
|
47328
47477
|
validator: {
|
|
47329
47478
|
errors: {
|
|
47330
47479
|
destinationNotDefined: "Destination path is not defined",
|
|
47480
|
+
destinationInsideProject: "Destination path '{destinationPath}' is inside the project directory '{projectPath}'.",
|
|
47331
47481
|
governanceRequired: "Governance file path is required when governance file type is not Default",
|
|
47332
47482
|
governanceFileInfo: "Unable to get file information: {path}",
|
|
47333
|
-
governanceInvalidFile: "Governance file path is not a valid file: {path}"
|
|
47483
|
+
governanceInvalidFile: "Governance file path is not a valid file: {path}",
|
|
47484
|
+
destinationInsideProjectInstruction: "Choose a destination outside the project directory. A package written inside the project would be swallowed into the next pack's content."
|
|
47334
47485
|
}
|
|
47335
47486
|
},
|
|
47336
47487
|
packager: {
|
|
@@ -50264,6 +50415,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50264
50415
|
KNOWN_SKILL_NAMES3 = new Set(Object.keys(SKILL_ATTRIBUTION3));
|
|
50265
50416
|
COMMAND_ATTRIBUTION3 = commandAttribution3([
|
|
50266
50417
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
50418
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
50267
50419
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
50268
50420
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
50269
50421
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -50482,6 +50634,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50482
50634
|
ProjectCleanupOptions = class ProjectCleanupOptions extends PackagerParameters2 {
|
|
50483
50635
|
dryRun = false;
|
|
50484
50636
|
skipImports = false;
|
|
50637
|
+
lockKey;
|
|
50485
50638
|
};
|
|
50486
50639
|
ProjectPackOptions = class ProjectPackOptions extends ProjectBuildOptions {
|
|
50487
50640
|
destinationPath;
|
|
@@ -50522,6 +50675,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50522
50675
|
if (!destinationResult.isSuccess) {
|
|
50523
50676
|
return destinationResult;
|
|
50524
50677
|
}
|
|
50678
|
+
const containmentResult = await this.validateDestinationOutsideProjectAsync(options.destinationPath, options.inputPath);
|
|
50679
|
+
if (!containmentResult.isSuccess) {
|
|
50680
|
+
return containmentResult;
|
|
50681
|
+
}
|
|
50525
50682
|
return await super.validateAsync(options, cancellationToken);
|
|
50526
50683
|
}
|
|
50527
50684
|
};
|
|
@@ -50579,7 +50736,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50579
50736
|
package_default3 = {
|
|
50580
50737
|
name: "@uipath/project-packager",
|
|
50581
50738
|
license: "MIT",
|
|
50582
|
-
version: "1.
|
|
50739
|
+
version: "1.199.0-preview.91",
|
|
50583
50740
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
50584
50741
|
type: "module",
|
|
50585
50742
|
main: "./dist/index.js",
|
|
@@ -50710,6 +50867,7 @@ var init_project_cleanup_options = __esm(() => {
|
|
|
50710
50867
|
ProjectCleanupOptions2 = class ProjectCleanupOptions2 extends PackagerParameters {
|
|
50711
50868
|
dryRun = false;
|
|
50712
50869
|
skipImports = false;
|
|
50870
|
+
lockKey;
|
|
50713
50871
|
};
|
|
50714
50872
|
});
|
|
50715
50873
|
|
|
@@ -50973,7 +51131,7 @@ var init_package = __esm(() => {
|
|
|
50973
51131
|
package_default4 = {
|
|
50974
51132
|
name: "@uipath/project-packager",
|
|
50975
51133
|
license: "MIT",
|
|
50976
|
-
version: "1.
|
|
51134
|
+
version: "1.199.0-preview.91",
|
|
50977
51135
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
50978
51136
|
type: "module",
|
|
50979
51137
|
main: "./dist/index.js",
|
|
@@ -80427,7 +80585,7 @@ import"./packager-tool.js";
|
|
|
80427
80585
|
var package_default = {
|
|
80428
80586
|
name: "@uipath/api-workflow-tool",
|
|
80429
80587
|
license: "MIT",
|
|
80430
|
-
version: "1.
|
|
80588
|
+
version: "1.199.0-preview.91",
|
|
80431
80589
|
description: "Run UiPath API Workflows locally.",
|
|
80432
80590
|
private: false,
|
|
80433
80591
|
repository: {
|
|
@@ -87096,6 +87254,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
87096
87254
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
87097
87255
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
87098
87256
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
87257
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
87099
87258
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
87100
87259
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
87101
87260
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -88140,7 +88299,7 @@ class TextApiResponse {
|
|
|
88140
88299
|
var package_default2 = {
|
|
88141
88300
|
name: "@uipath/integrationservice-sdk",
|
|
88142
88301
|
license: "MIT",
|
|
88143
|
-
version: "1.
|
|
88302
|
+
version: "1.199.0-preview.91",
|
|
88144
88303
|
repository: {
|
|
88145
88304
|
type: "git",
|
|
88146
88305
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -93927,6 +94086,7 @@ var resolveConfigAsync = async ({
|
|
|
93927
94086
|
customAuthority,
|
|
93928
94087
|
customClientId,
|
|
93929
94088
|
customClientSecret,
|
|
94089
|
+
customClientAssertion,
|
|
93930
94090
|
customScopes
|
|
93931
94091
|
} = {}) => {
|
|
93932
94092
|
const fileAuth = getAuthFileConfig();
|
|
@@ -93952,7 +94112,7 @@ var resolveConfigAsync = async ({
|
|
|
93952
94112
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
93953
94113
|
clientSecret = fileAuth.clientSecret;
|
|
93954
94114
|
}
|
|
93955
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
94115
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
93956
94116
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
93957
94117
|
return {
|
|
93958
94118
|
clientId,
|
|
@@ -95070,7 +95230,6 @@ var getAuthContext = async (options = {}) => {
|
|
|
95070
95230
|
tenantName
|
|
95071
95231
|
};
|
|
95072
95232
|
};
|
|
95073
|
-
|
|
95074
95233
|
// ../auth/src/index.ts
|
|
95075
95234
|
init_constants();
|
|
95076
95235
|
|
|
@@ -95750,6 +95909,12 @@ function parseConfig(activity) {
|
|
|
95750
95909
|
|
|
95751
95910
|
// src/services/registry-service.ts
|
|
95752
95911
|
var HTTP_CONNECTOR_KEY = "uipath-uipath-http";
|
|
95912
|
+
var ACTIVITY_EXCLUSIONS = [
|
|
95913
|
+
(c) => c.connectorKey === "uipath-uipath-dataservice" && /_V3$/i.test(c.objectName ?? "")
|
|
95914
|
+
];
|
|
95915
|
+
function isExcluded(config) {
|
|
95916
|
+
return ACTIVITY_EXCLUSIONS.some((match) => match(config));
|
|
95917
|
+
}
|
|
95753
95918
|
function isHiddenParameter(p) {
|
|
95754
95919
|
return p.design?.isHidden === true;
|
|
95755
95920
|
}
|
|
@@ -95767,6 +95932,8 @@ async function searchActivities(keyword, limit = 50) {
|
|
|
95767
95932
|
const config = parseConfig(activity);
|
|
95768
95933
|
if (!config)
|
|
95769
95934
|
continue;
|
|
95935
|
+
if (isExcluded(config))
|
|
95936
|
+
continue;
|
|
95770
95937
|
const haystack = [
|
|
95771
95938
|
activity.displayName,
|
|
95772
95939
|
activity.description,
|
|
@@ -95798,6 +95965,8 @@ async function findActivityByGuid(activityTypeId) {
|
|
|
95798
95965
|
const config = parseConfig(activity);
|
|
95799
95966
|
if (!config)
|
|
95800
95967
|
return null;
|
|
95968
|
+
if (isExcluded(config))
|
|
95969
|
+
return null;
|
|
95801
95970
|
return { activity, config };
|
|
95802
95971
|
}
|
|
95803
95972
|
async function fetchIsEnrichment(args) {
|
|
@@ -97421,7 +97590,7 @@ async function runPackagerCommand(opts, config) {
|
|
|
97421
97590
|
OutputFormatter.success(new SuccessOutput(config.label, data));
|
|
97422
97591
|
return true;
|
|
97423
97592
|
}
|
|
97424
|
-
OutputFormatter.error(new FailureOutput(`${config.label} failed`, result.message ?? (result.errorCode ? `Error code: ${result.errorCode}` : "Unknown error"), config.hint));
|
|
97593
|
+
OutputFormatter.error(new FailureOutput(`${config.label} failed`, result.message ?? (result.errorCode ? `Error code: ${result.errorCode}` : "Unknown error"), result.instructions ?? config.hint));
|
|
97425
97594
|
return false;
|
|
97426
97595
|
}
|
|
97427
97596
|
|
|
@@ -97679,7 +97848,7 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
|
|
|
97679
97848
|
var package_default5 = {
|
|
97680
97849
|
name: "@uipath/solution-sdk",
|
|
97681
97850
|
license: "MIT",
|
|
97682
|
-
version: "1.
|
|
97851
|
+
version: "1.199.0-preview.91",
|
|
97683
97852
|
repository: {
|
|
97684
97853
|
type: "git",
|
|
97685
97854
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -97876,7 +98045,7 @@ ${readDirError.message}`)
|
|
|
97876
98045
|
registration: {
|
|
97877
98046
|
Status: "Skipped",
|
|
97878
98047
|
Message: "Project registration skipped.",
|
|
97879
|
-
Instructions: `Found multiple .uipx files in ${currentDir}: ${solutionFiles.join(", ")}. Run 'uip solution
|
|
98048
|
+
Instructions: `Found multiple .uipx files in ${currentDir}: ${solutionFiles.join(", ")}. Run 'uip solution projects add "${projectDir}" <solution.uipx>' to choose one.`
|
|
97880
98049
|
}
|
|
97881
98050
|
};
|
|
97882
98051
|
}
|
|
@@ -97987,7 +98156,7 @@ async function readSolutionManifest(fs11, solutionFile) {
|
|
|
97987
98156
|
const projectRelativePath = readString(project.ProjectRelativePath);
|
|
97988
98157
|
if (!projectRelativePath) {
|
|
97989
98158
|
return [
|
|
97990
|
-
new Error(`Invalid solution file: Projects[${index}] is missing ProjectRelativePath. Use 'uip solution
|
|
98159
|
+
new Error(`Invalid solution file: Projects[${index}] is missing ProjectRelativePath. Use 'uip solution projects add' to repair the manifest.`),
|
|
97991
98160
|
null
|
|
97992
98161
|
];
|
|
97993
98162
|
}
|
|
@@ -98014,7 +98183,7 @@ function buildRegistrationSuccessInstructions(solutionDir) {
|
|
|
98014
98183
|
function buildRegistrationFailureInstructions(projectDir, details) {
|
|
98015
98184
|
return [
|
|
98016
98185
|
"Automatic solution registration could not complete.",
|
|
98017
|
-
`Run 'uip solution
|
|
98186
|
+
`Run 'uip solution projects add "${projectDir}" <solution.uipx>' after checking the project and solution files.`,
|
|
98018
98187
|
`Details: ${details}`
|
|
98019
98188
|
].join(`
|
|
98020
98189
|
`);
|
|
@@ -98023,14 +98192,14 @@ function buildStandaloneInstructions(projectDir) {
|
|
|
98023
98192
|
return [
|
|
98024
98193
|
"No parent solution was found by walking ancestor directories.",
|
|
98025
98194
|
"Studio Web upload, `flow debug`, and packaging require an enclosing solution.",
|
|
98026
|
-
`To link this project to a solution, run 'uip solution init "<SolutionName>"' then 'uip solution
|
|
98195
|
+
`To link this project to a solution, run 'uip solution init "<SolutionName>"' then 'uip solution projects add "${projectDir}" <SolutionName>.uipx'.`
|
|
98027
98196
|
].join(`
|
|
98028
98197
|
`);
|
|
98029
98198
|
}
|
|
98030
98199
|
function buildOptedOutInstructions(projectDir) {
|
|
98031
98200
|
return [
|
|
98032
98201
|
"Automatic solution registration was skipped because --skip-solution-registration was passed.",
|
|
98033
|
-
`To register this project later, run 'uip solution
|
|
98202
|
+
`To register this project later, run 'uip solution projects add "${projectDir}" <SolutionName>.uipx' from within the solution.`
|
|
98034
98203
|
].join(`
|
|
98035
98204
|
`);
|
|
98036
98205
|
}
|
|
@@ -98397,6 +98566,7 @@ var registerInitCommand = (program4) => {
|
|
|
98397
98566
|
};
|
|
98398
98567
|
|
|
98399
98568
|
// src/commands/pack.ts
|
|
98569
|
+
var DEFAULT_PACKAGE_VERSION = "1.0.0";
|
|
98400
98570
|
var PACK_EXAMPLES = [
|
|
98401
98571
|
{
|
|
98402
98572
|
Description: "Pack an API Workflow project into a .nupkg",
|
|
@@ -98420,9 +98590,10 @@ var registerPackCommand = (program4) => {
|
|
|
98420
98590
|
hint: "Check project path and pack configuration.",
|
|
98421
98591
|
execute: async (packager, options, opts2) => {
|
|
98422
98592
|
options.destinationPath = opts2.destinationPath;
|
|
98593
|
+
const version = opts2.packageVersion?.trim() || DEFAULT_PACKAGE_VERSION;
|
|
98423
98594
|
options.package = {
|
|
98424
98595
|
id: opts2.packageId ?? "",
|
|
98425
|
-
version
|
|
98596
|
+
version,
|
|
98426
98597
|
...mapPackageMetadataOptions(opts2)
|
|
98427
98598
|
};
|
|
98428
98599
|
if (opts2.signingCertificatePath) {
|
|
@@ -99968,4 +100139,4 @@ export {
|
|
|
99968
100139
|
metadata
|
|
99969
100140
|
};
|
|
99970
100141
|
|
|
99971
|
-
//# debugId=
|
|
100142
|
+
//# debugId=090898773DC3EDF664756E2164756E21
|
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.91",
|
|
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": "f428cb1e61ba89ad18394b0c6106784055699f02"
|
|
27
27
|
}
|