@uipath/solution-tool 1.198.0 → 1.199.0-preview.104

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";
@@ -28318,6 +28324,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
28318
28324
  var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
28319
28325
  var COMMAND_ATTRIBUTION = commandAttribution([
28320
28326
  ["cli", "troubleshoot", ["uip.feedback"]],
28327
+ ["llm-gateway", "operate", ["uip.llm-gateway"]],
28321
28328
  ["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
28322
28329
  ["context-grounding", "build", ["uip.context-grounding"]],
28323
28330
  ["api-workflow", "build", ["uip.api-workflow"]],
@@ -29372,7 +29379,7 @@ class TextApiResponse {
29372
29379
  var package_default = {
29373
29380
  name: "@uipath/pipelines-sdk",
29374
29381
  license: "MIT",
29375
- version: "1.198.0",
29382
+ version: "1.199.0",
29376
29383
  description: "Generated TypeScript client for UiPath Pipelines API (CI/CD deployment lifecycle)",
29377
29384
  repository: {
29378
29385
  type: "git",
@@ -30696,7 +30703,7 @@ class TextApiResponse2 {
30696
30703
  var package_default2 = {
30697
30704
  name: "@uipath/solution-sdk",
30698
30705
  license: "MIT",
30699
- version: "1.198.0",
30706
+ version: "1.199.0-preview.104",
30700
30707
  repository: {
30701
30708
  type: "git",
30702
30709
  url: "https://github.com/UiPath/cli.git",
@@ -31396,6 +31403,7 @@ var resolveConfigAsync = async ({
31396
31403
  customAuthority,
31397
31404
  customClientId,
31398
31405
  customClientSecret,
31406
+ customClientAssertion,
31399
31407
  customScopes
31400
31408
  } = {}) => {
31401
31409
  const fileAuth = getAuthFileConfig();
@@ -31421,7 +31429,7 @@ var resolveConfigAsync = async ({
31421
31429
  if (!clientSecret && fileAuth.clientSecret) {
31422
31430
  clientSecret = fileAuth.clientSecret;
31423
31431
  }
31424
- const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
31432
+ const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
31425
31433
  const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
31426
31434
  return {
31427
31435
  clientId,
@@ -32539,7 +32547,6 @@ var getAuthContext = async (options = {}) => {
32539
32547
  tenantName
32540
32548
  };
32541
32549
  };
32542
-
32543
32550
  // ../auth/src/index.ts
32544
32551
  init_constants();
32545
32552
 
@@ -32832,7 +32839,7 @@ class VoidApiResponse3 {
32832
32839
  var package_default3 = {
32833
32840
  name: "@uipath/orchestrator-sdk",
32834
32841
  license: "MIT",
32835
- version: "1.198.0",
32842
+ version: "1.199.0",
32836
32843
  repository: {
32837
32844
  type: "git",
32838
32845
  url: "https://github.com/UiPath/cli.git",
@@ -33471,4 +33478,4 @@ export {
33471
33478
  publishSolutionAsync
33472
33479
  };
33473
33480
 
33474
- //# debugId=BDF44030723049A264756E2164756E21
33481
+ //# debugId=204D446FFDBA239C64756E2164756E21