@uipath/solutionpackager-tool-core 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/index.js +6 -4
- package/dist/models/tool-result.d.ts +7 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1137,10 +1137,12 @@ class ToolResult {
|
|
|
1137
1137
|
message;
|
|
1138
1138
|
packages;
|
|
1139
1139
|
details;
|
|
1140
|
-
|
|
1140
|
+
instructions;
|
|
1141
|
+
constructor(errorCode, message, packages = [], instructions) {
|
|
1141
1142
|
this.errorCode = errorCode;
|
|
1142
1143
|
this.message = message;
|
|
1143
1144
|
this.packages = packages;
|
|
1145
|
+
this.instructions = instructions;
|
|
1144
1146
|
}
|
|
1145
1147
|
get isSuccess() {
|
|
1146
1148
|
return this.errorCode === "SUCCESS" /* Success */;
|
|
@@ -1148,8 +1150,8 @@ class ToolResult {
|
|
|
1148
1150
|
static success() {
|
|
1149
1151
|
return new ToolResult("SUCCESS" /* Success */);
|
|
1150
1152
|
}
|
|
1151
|
-
static error(errorCode, message) {
|
|
1152
|
-
return new ToolResult(errorCode, message);
|
|
1153
|
+
static error(errorCode, message, instructions) {
|
|
1154
|
+
return new ToolResult(errorCode, message, [], instructions);
|
|
1153
1155
|
}
|
|
1154
1156
|
}
|
|
1155
1157
|
// src/models/workflow-compiler-cleanup-info.ts
|
|
@@ -1580,4 +1582,4 @@ export {
|
|
|
1580
1582
|
BuildConfiguration
|
|
1581
1583
|
};
|
|
1582
1584
|
|
|
1583
|
-
//# debugId=
|
|
1585
|
+
//# debugId=E68B72C1B1113EF964756E2164756E21
|
|
@@ -19,7 +19,12 @@ export declare class ToolResult {
|
|
|
19
19
|
* Additional structured result data produced by a tool.
|
|
20
20
|
*/
|
|
21
21
|
details?: Record<string, unknown>;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Optional actionable guidance for an error, surfaced separately from the
|
|
24
|
+
* message (e.g. as the Instructions field in CLI output).
|
|
25
|
+
*/
|
|
26
|
+
instructions?: string;
|
|
27
|
+
constructor(errorCode: ToolErrorCode, message?: string, packages?: string[], instructions?: string);
|
|
23
28
|
/**
|
|
24
29
|
* Indicates whether the result represents a successful operation
|
|
25
30
|
*/
|
|
@@ -31,5 +36,5 @@ export declare class ToolResult {
|
|
|
31
36
|
/**
|
|
32
37
|
* Create an error result
|
|
33
38
|
*/
|
|
34
|
-
static error(errorCode: ToolErrorCode, message?: string): ToolResult;
|
|
39
|
+
static error(errorCode: ToolErrorCode, message?: string, instructions?: string): ToolResult;
|
|
35
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/solutionpackager-tool-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.199.0-preview.105",
|
|
4
4
|
"description": "UiPath contracts for solution packager tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"registry": "https://registry.npmjs.org/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@uipath/filesystem": "1.
|
|
27
|
+
"@uipath/filesystem": "1.199.0",
|
|
28
28
|
"fflate": "^0.8.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "30a83200f41e8bb994929322e33176b4355f6707"
|
|
31
31
|
}
|