@uipath/solution-tool 1.198.0-preview.88 → 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.
@@ -1583,10 +1583,12 @@ class ToolResult {
1583
1583
  message;
1584
1584
  packages;
1585
1585
  details;
1586
- constructor(errorCode, message, packages = []) {
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";
@@ -4673,4 +4675,4 @@ toolsFactoryRepository2.registerProjectToolFactory(new ConnectorToolFactory);
4673
4675
  toolsFactoryRepository2.registerProjectToolFactory(new WebAppToolFactory);
4674
4676
  toolsFactoryRepository2.registerProjectToolFactory(new FunctionsToolFactory);
4675
4677
 
4676
- //# debugId=CB6BF408EBE3322D64756E2164756E21
4678
+ //# debugId=83A1AD50869B571F64756E2164756E21
@@ -7,6 +7,6 @@ import { type IResourceBuilderServices } from "@uipath/resource-builder-sdk";
7
7
  *
8
8
  * `EntryPointSpecEnhancer` is registered so artefact resources (resources
9
9
  * with a `projectKey`) reflect the latest `entry-points.json` from disk at
10
- * read time, instead of the snapshot captured at `solution project add`.
10
+ * read time, instead of the snapshot captured at `solution projects add`.
11
11
  */
12
12
  export declare function createResourceBuilderServices(): Promise<IResourceBuilderServices>;
package/dist/publish.js CHANGED
@@ -21262,6 +21262,7 @@ function settlePromiseLike(thenable) {
21262
21262
  var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
21263
21263
  var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
21264
21264
  var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
21265
+ var DEFAULT_413 = "Payload too large (413). The upload exceeded the server or CDN size limit. Reduce the package size — for example, exclude unused dependencies or remove large files from the project — and try again.";
21265
21266
  var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
21266
21267
  var NETWORK_ERROR_CODES = new Set([
21267
21268
  "ECONNREFUSED",
@@ -21363,6 +21364,9 @@ function classifyError(status, error) {
21363
21364
  if (status === 405) {
21364
21365
  return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
21365
21366
  }
21367
+ if (status === 413) {
21368
+ return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
21369
+ }
21366
21370
  if (status === 408) {
21367
21371
  return { errorCode: "timeout", retry: "RetryLater" };
21368
21372
  }
@@ -21440,6 +21444,8 @@ async function extractErrorDetails(error, options) {
21440
21444
  result = "AuthenticationError";
21441
21445
  } else if (status === 405) {
21442
21446
  message = DEFAULT_405;
21447
+ } else if (status === 413) {
21448
+ message = DEFAULT_413;
21443
21449
  } else if (status === 400 || status === 422) {
21444
21450
  message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
21445
21451
  result = "ValidationError";
@@ -28090,6 +28096,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
28090
28096
  var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
28091
28097
  var COMMAND_ATTRIBUTION = commandAttribution([
28092
28098
  ["cli", "troubleshoot", ["uip.feedback"]],
28099
+ ["llm-gateway", "operate", ["uip.llm-gateway"]],
28093
28100
  ["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
28094
28101
  ["context-grounding", "build", ["uip.context-grounding"]],
28095
28102
  ["api-workflow", "build", ["uip.api-workflow"]],
@@ -29265,7 +29272,7 @@ class TextApiResponse {
29265
29272
  var package_default = {
29266
29273
  name: "@uipath/pipelines-sdk",
29267
29274
  license: "MIT",
29268
- version: "1.198.0",
29275
+ version: "1.199.0",
29269
29276
  description: "Generated TypeScript client for UiPath Pipelines API (CI/CD deployment lifecycle)",
29270
29277
  repository: {
29271
29278
  type: "git",
@@ -30589,7 +30596,7 @@ class TextApiResponse2 {
30589
30596
  var package_default2 = {
30590
30597
  name: "@uipath/solution-sdk",
30591
30598
  license: "MIT",
30592
- version: "1.198.0-preview.88",
30599
+ version: "1.199.0-preview.91",
30593
30600
  repository: {
30594
30601
  type: "git",
30595
30602
  url: "https://github.com/UiPath/cli.git",
@@ -31289,6 +31296,7 @@ var resolveConfigAsync = async ({
31289
31296
  customAuthority,
31290
31297
  customClientId,
31291
31298
  customClientSecret,
31299
+ customClientAssertion,
31292
31300
  customScopes
31293
31301
  } = {}) => {
31294
31302
  const fileAuth = getAuthFileConfig();
@@ -31314,7 +31322,7 @@ var resolveConfigAsync = async ({
31314
31322
  if (!clientSecret && fileAuth.clientSecret) {
31315
31323
  clientSecret = fileAuth.clientSecret;
31316
31324
  }
31317
- const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
31325
+ const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
31318
31326
  const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
31319
31327
  return {
31320
31328
  clientId,
@@ -32432,7 +32440,6 @@ var getAuthContext = async (options = {}) => {
32432
32440
  tenantName
32433
32441
  };
32434
32442
  };
32435
-
32436
32443
  // ../auth/src/index.ts
32437
32444
  init_constants();
32438
32445
 
@@ -32725,7 +32732,7 @@ class VoidApiResponse3 {
32725
32732
  var package_default3 = {
32726
32733
  name: "@uipath/orchestrator-sdk",
32727
32734
  license: "MIT",
32728
- version: "1.198.0",
32735
+ version: "1.199.0",
32729
32736
  repository: {
32730
32737
  type: "git",
32731
32738
  url: "https://github.com/UiPath/cli.git",
@@ -33364,4 +33371,4 @@ export {
33364
33371
  publishSolutionAsync
33365
33372
  };
33366
33373
 
33367
- //# debugId=7E4B8DE8A60A7D3164756E2164756E21
33374
+ //# debugId=5E27A637809354FD64756E2164756E21