@uipath/traces-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.
Files changed (2) hide show
  1. package/dist/tool.js +20 -7
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -21230,7 +21230,7 @@ var init_server = __esm(() => {
21230
21230
  var package_default = {
21231
21231
  name: "@uipath/traces-tool",
21232
21232
  license: "MIT",
21233
- version: "1.198.0",
21233
+ version: "1.199.0-preview.104",
21234
21234
  description: "Query execution traces for UiPath jobs",
21235
21235
  private: false,
21236
21236
  keywords: [
@@ -21258,6 +21258,7 @@ var package_default = {
21258
21258
  devDependencies: {
21259
21259
  "@uipath/auth": "workspace:*",
21260
21260
  "@uipath/common": "workspace:*",
21261
+ "@uipath/filesystem": "workspace:*",
21261
21262
  "@uipath/orchestrator-sdk": "workspace:*",
21262
21263
  "@types/node": "^25.5.2",
21263
21264
  commander: "^14.0.3",
@@ -21300,6 +21301,7 @@ function settlePromiseLike(thenable) {
21300
21301
  var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
21301
21302
  var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
21302
21303
  var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
21304
+ 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.";
21303
21305
  var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
21304
21306
  var NETWORK_ERROR_CODES = new Set([
21305
21307
  "ECONNREFUSED",
@@ -21401,6 +21403,9 @@ function classifyError(status, error) {
21401
21403
  if (status === 405) {
21402
21404
  return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
21403
21405
  }
21406
+ if (status === 413) {
21407
+ return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
21408
+ }
21404
21409
  if (status === 408) {
21405
21410
  return { errorCode: "timeout", retry: "RetryLater" };
21406
21411
  }
@@ -21478,6 +21483,8 @@ async function extractErrorDetails(error, options) {
21478
21483
  result = "AuthenticationError";
21479
21484
  } else if (status === 405) {
21480
21485
  message = DEFAULT_405;
21486
+ } else if (status === 413) {
21487
+ message = DEFAULT_413;
21481
21488
  } else if (status === 400 || status === 422) {
21482
21489
  message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
21483
21490
  result = "ValidationError";
@@ -28360,6 +28367,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
28360
28367
  var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
28361
28368
  var COMMAND_ATTRIBUTION = commandAttribution([
28362
28369
  ["cli", "troubleshoot", ["uip.feedback"]],
28370
+ ["llm-gateway", "operate", ["uip.llm-gateway"]],
28363
28371
  ["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
28364
28372
  ["context-grounding", "build", ["uip.context-grounding"]],
28365
28373
  ["api-workflow", "build", ["uip.api-workflow"]],
@@ -28832,6 +28840,7 @@ var resolveConfigAsync = async ({
28832
28840
  customAuthority,
28833
28841
  customClientId,
28834
28842
  customClientSecret,
28843
+ customClientAssertion,
28835
28844
  customScopes
28836
28845
  } = {}) => {
28837
28846
  const fileAuth = getAuthFileConfig();
@@ -28857,7 +28866,7 @@ var resolveConfigAsync = async ({
28857
28866
  if (!clientSecret && fileAuth.clientSecret) {
28858
28867
  clientSecret = fileAuth.clientSecret;
28859
28868
  }
28860
- const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
28869
+ const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
28861
28870
  const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
28862
28871
  return {
28863
28872
  clientId,
@@ -29975,7 +29984,6 @@ var getAuthContext = async (options = {}) => {
29975
29984
  tenantName
29976
29985
  };
29977
29986
  };
29978
-
29979
29987
  // ../auth/src/index.ts
29980
29988
  init_constants();
29981
29989
 
@@ -30178,6 +30186,7 @@ async function deleteFeedback(id, opts) {
30178
30186
  }
30179
30187
 
30180
30188
  // src/commands/feedback/_shared.ts
30189
+ init_src();
30181
30190
  function collect(val, prev) {
30182
30191
  return [...prev, val];
30183
30192
  }
@@ -30189,8 +30198,12 @@ async function readCommentFile(filePath) {
30189
30198
  }
30190
30199
  return Buffer.concat(chunks).toString("utf8");
30191
30200
  }
30192
- const { readFile: readFile2 } = await import("node:fs/promises");
30193
- return readFile2(filePath, "utf8");
30201
+ const fs7 = getFileSystem();
30202
+ const content = await fs7.readFile(filePath, "utf-8");
30203
+ if (content === null) {
30204
+ throw new Error(`Comment file not found: ${filePath}`);
30205
+ }
30206
+ return content;
30194
30207
  }
30195
30208
 
30196
30209
  // src/commands/feedback/create.ts
@@ -30972,7 +30985,7 @@ class TextApiResponse {
30972
30985
  var package_default2 = {
30973
30986
  name: "@uipath/orchestrator-sdk",
30974
30987
  license: "MIT",
30975
- version: "1.198.0",
30988
+ version: "1.199.0",
30976
30989
  repository: {
30977
30990
  type: "git",
30978
30991
  url: "https://github.com/UiPath/cli.git",
@@ -34945,4 +34958,4 @@ export {
34945
34958
  metadata
34946
34959
  };
34947
34960
 
34948
- //# debugId=0C38F450C5CD249264756E2164756E21
34961
+ //# debugId=6B79002E4B5C5DB964756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/traces-tool",
3
3
  "license": "MIT",
4
- "version": "1.198.0",
4
+ "version": "1.199.0-preview.104",
5
5
  "description": "Query execution traces for UiPath jobs",
6
6
  "private": false,
7
7
  "keywords": [
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "registry": "https://registry.npmjs.org/"
23
23
  },
24
- "gitHead": "1fadf03d7a8dd102742571dff569fdac11808afb"
24
+ "gitHead": "829a8ab8a25bce5b62c284bd1ddc674d2947f647"
25
25
  }