@uipath/tasks-tool 1.202.1 → 1.203.0-preview.180

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.
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  FoldersApi,
3
3
  createApiClient
4
- } from "./tool-qhy72z2y.js";
4
+ } from "./tool-6ykqbeks.js";
5
5
  import {
6
6
  OutputFormatter,
7
7
  RESULTS,
8
8
  catchError,
9
9
  extractErrorMessage,
10
10
  processContext
11
- } from "./tool-fqszw775.js";
11
+ } from "./tool-pbamehqj.js";
12
12
  import {
13
13
  __commonJS,
14
14
  __require,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveFolder
3
- } from "./tool-qhy72z2y.js";
3
+ } from "./tool-6ykqbeks.js";
4
4
  import {
5
5
  OutputFormatter,
6
6
  RESULTS,
@@ -8,7 +8,7 @@ import {
8
8
  extractErrorMessage,
9
9
  isGuid,
10
10
  processContext
11
- } from "./tool-fqszw775.js";
11
+ } from "./tool-pbamehqj.js";
12
12
  import"./tool-1de529jm.js";
13
13
 
14
14
  // src/commands/_shared/folder-resolver.ts
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./tool-eyb72tyx.js";
5
+ } from "./tool-911tnq9h.js";
6
6
  import {
7
7
  Command
8
- } from "./tool-fqszw775.js";
8
+ } from "./tool-pbamehqj.js";
9
9
  import"./tool-bndhpxxj.js";
10
10
  import"./tool-1de529jm.js";
11
11
 
@@ -3,7 +3,7 @@ import {
3
3
  getAuthContext,
4
4
  getSdkUserAgentToken,
5
5
  installSdkUserAgentHeader
6
- } from "./tool-fqszw775.js";
6
+ } from "./tool-pbamehqj.js";
7
7
 
8
8
  // ../orchestrator-sdk/generated/src/runtime.ts
9
9
  var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
@@ -2313,8 +2313,9 @@ class FoldersApi extends BaseAPI {
2313
2313
  // ../orchestrator-sdk/package.json
2314
2314
  var package_default = {
2315
2315
  name: "@uipath/orchestrator-sdk",
2316
+ author: "UiPath",
2316
2317
  license: "SEE LICENSE IN LICENSE.txt",
2317
- version: "1.202.0",
2318
+ version: "1.203.0",
2318
2319
  repository: {
2319
2320
  type: "git",
2320
2321
  url: "https://github.com/UiPath/cli.git",
@@ -2445,4 +2446,4 @@ async function resolveByPath(foldersApi, folderPath) {
2445
2446
  }
2446
2447
  export { FoldersApi, createApiClient, resolveFolder };
2447
2448
 
2448
- //# debugId=5012870144BEAC9664756E2164756E21
2449
+ //# debugId=1B4FF271E6FB4D0B64756E2164756E21
@@ -9,7 +9,7 @@ import {
9
9
  extractErrorMessageSync,
10
10
  getLoginStatusAsync,
11
11
  processContext
12
- } from "./tool-fqszw775.js";
12
+ } from "./tool-pbamehqj.js";
13
13
  import {
14
14
  require_src
15
15
  } from "./tool-bndhpxxj.js";
@@ -4501,8 +4501,9 @@ var require_src6 = __commonJS(function(exports) {
4501
4501
  // package.json
4502
4502
  var package_default = {
4503
4503
  name: "@uipath/tasks-tool",
4504
+ author: "UiPath",
4504
4505
  license: "SEE LICENSE IN LICENSE.txt",
4505
- version: "1.202.1",
4506
+ version: "1.203.0-preview.180",
4506
4507
  description: "Manage Action Center tasks.",
4507
4508
  publishConfig: {
4508
4509
  registry: "https://npm.pkg.github.com/"
@@ -18596,11 +18597,11 @@ async function resolveFolderScope(options) {
18596
18597
  return parseIntArg(options.folderId, "--folder-id");
18597
18598
  }
18598
18599
  if (options.folderKey !== undefined) {
18599
- const { resolveFolderIdByKey } = await import("./folder-resolver-66p6b3jy.js");
18600
+ const { resolveFolderIdByKey } = await import("./folder-resolver-v3hx6eqb.js");
18600
18601
  return resolveFolderIdByKey(options.folderKey, options.tenant);
18601
18602
  }
18602
18603
  if (options.folderPath !== undefined) {
18603
- const { resolveFolderIdByPath } = await import("./folder-resolver-66p6b3jy.js");
18604
+ const { resolveFolderIdByPath } = await import("./folder-resolver-v3hx6eqb.js");
18604
18605
  return resolveFolderIdByPath(options.folderPath, options.tenant);
18605
18606
  }
18606
18607
  return;
@@ -18620,7 +18621,7 @@ async function resolveFolderId(options, missingFolderInstructions = DEFAULT_FOLD
18620
18621
  processContext.exit(1);
18621
18622
  return null;
18622
18623
  }
18623
- const { pickFolderInteractively } = await import("./folder-picker-interactive-gyxze8wq.js");
18624
+ const { pickFolderInteractively } = await import("./folder-picker-interactive-g7r2c8ct.js");
18624
18625
  return pickFolderInteractively(options.tenant);
18625
18626
  }
18626
18627
 
@@ -19442,4 +19443,4 @@ var registerCommands = async (program) => {
19442
19443
 
19443
19444
  export { metadata, registerCommands };
19444
19445
 
19445
- //# debugId=8D7330163006B2B164756E2164756E21
19446
+ //# debugId=7DEB7482CBD9BED764756E2164756E21
@@ -2379,7 +2379,7 @@ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{1
2379
2379
  var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
2380
2380
  var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
2381
2381
  var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
2382
- var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
2382
+ var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
2383
2383
  var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
2384
2384
  var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
2385
2385
  var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
@@ -2426,7 +2426,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
2426
2426
  `(?<![A-Za-z0-9])"(?:[^\\
2427
2427
  ]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
2428
2428
  ].join("|"), "g");
2429
- var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
2429
+ var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
2430
2430
  var COLLAPSED_BODY = "{…}";
2431
2431
  var COLLAPSED_BODY_MARKER = "\x01body\x01";
2432
2432
  var MAX_BODY_NESTING = 8;
@@ -2441,10 +2441,13 @@ function collapseJsonBodies(text) {
2441
2441
  }
2442
2442
  return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
2443
2443
  }
2444
- var TRAILING_PROSE_PUNCT = /[.,;:!?)\]}>'"]+$/;
2444
+ var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
2445
2445
  function peelTrailingPunctuation(match) {
2446
- const trailing = match.match(TRAILING_PROSE_PUNCT)?.[0] ?? "";
2447
- return trailing ? [match.slice(0, -trailing.length), trailing] : [match, ""];
2446
+ let end = match.length;
2447
+ while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
2448
+ end -= 1;
2449
+ }
2450
+ return [match.slice(0, end), match.slice(end)];
2448
2451
  }
2449
2452
  function redactUrl(raw) {
2450
2453
  try {
@@ -2747,6 +2750,22 @@ function parseHttpStatusFromMessage(message) {
2747
2750
  const status = Number(match[1]);
2748
2751
  return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
2749
2752
  }
2753
+ function findHttpStatusInGraph(error) {
2754
+ for (const node of walkErrorGraph(error)) {
2755
+ const response = node.response;
2756
+ const explicit = typeof node.status === "number" ? node.status : response?.status;
2757
+ if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
2758
+ return explicit;
2759
+ }
2760
+ if (typeof node.message === "string") {
2761
+ const parsed = parseHttpStatusFromMessage(node.message);
2762
+ if (parsed !== undefined && parsed >= 400) {
2763
+ return parsed;
2764
+ }
2765
+ }
2766
+ }
2767
+ return;
2768
+ }
2750
2769
  function isHtmlDocument(body) {
2751
2770
  return /^\s*(<!doctype html|<html\b)/i.test(body);
2752
2771
  }
@@ -2860,7 +2879,8 @@ async function extractErrorDetails(error, options) {
2860
2879
  }
2861
2880
  let message;
2862
2881
  let result = "Failure";
2863
- const classification = classifyError(status, error);
2882
+ const classificationStatus = status ?? findHttpStatusInGraph(error);
2883
+ const classification = classifyError(classificationStatus, error);
2864
2884
  let retry = classification.retry;
2865
2885
  if (status === 401) {
2866
2886
  message = DEFAULT_401;
@@ -2936,8 +2956,8 @@ async function extractErrorDetails(error, options) {
2936
2956
  details = describeThrownValue(error);
2937
2957
  }
2938
2958
  const context = {};
2939
- if (status) {
2940
- context.httpStatus = status;
2959
+ if (classificationStatus) {
2960
+ context.httpStatus = classificationStatus;
2941
2961
  }
2942
2962
  if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
2943
2963
  context.errorCode = parsedBody.errorCode;
@@ -3744,7 +3764,8 @@ function readRegistryValue(keyPath, valueName) {
3744
3764
  }
3745
3765
  const [error, output] = catchError(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
3746
3766
  encoding: "utf-8",
3747
- stdio: ["pipe", "pipe", "pipe"]
3767
+ stdio: ["pipe", "pipe", "pipe"],
3768
+ windowsHide: true
3748
3769
  }));
3749
3770
  if (error) {
3750
3771
  return "";
@@ -4426,28 +4447,32 @@ function isPlainRecord(value) {
4426
4447
  const prototype = Object.getPrototypeOf(value);
4427
4448
  return prototype === Object.prototype || prototype === null;
4428
4449
  }
4429
- function extractPagedRows(value) {
4450
+ function splitPagedEnvelope(value) {
4430
4451
  if (Array.isArray(value) || !isPlainRecord(value))
4431
4452
  return null;
4432
- const entries = Object.values(value);
4453
+ const entries = Object.entries(value);
4433
4454
  if (entries.length === 0)
4434
4455
  return null;
4435
- let rows = null;
4436
- let hasScalarSibling = false;
4437
- for (const entry of entries) {
4456
+ let found = null;
4457
+ const meta = Object.create(null);
4458
+ for (const [key, entry] of entries) {
4438
4459
  if (Array.isArray(entry)) {
4439
- if (rows !== null)
4460
+ if (found !== null)
4440
4461
  return null;
4441
- rows = entry;
4462
+ found = { key, rows: entry };
4442
4463
  } else if (entry !== null && typeof entry === "object") {
4443
4464
  return null;
4444
4465
  } else {
4445
- hasScalarSibling = true;
4466
+ meta[key] = entry;
4446
4467
  }
4447
4468
  }
4448
- if (rows === null || !hasScalarSibling)
4469
+ if (found === null || Object.keys(meta).length === 0)
4449
4470
  return null;
4450
- return rows;
4471
+ return { ...found, meta };
4472
+ }
4473
+ function extractPagedRows(value) {
4474
+ const paged = splitPagedEnvelope(value);
4475
+ return paged === null ? null : paged.rows;
4451
4476
  }
4452
4477
  function toLowerCamelCaseKey(key) {
4453
4478
  if (!key)
@@ -4551,6 +4576,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
4551
4576
  }
4552
4577
  break;
4553
4578
  }
4579
+ case "markdown":
4580
+ logFn(renderMarkdown(data));
4581
+ break;
4554
4582
  default: {
4555
4583
  const hasData = "Data" in data && data.Data != null;
4556
4584
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
@@ -4575,6 +4603,10 @@ function logOutput(data, format = "json", tableRowStyle) {
4575
4603
  printOutput(data, format, (msg) => sink.writeOut(`${msg}
4576
4604
  `), needsAsciiSafeJson(sink), styleFn);
4577
4605
  }
4606
+ var PLUMBING_KEYS = new Set(["code", "log"]);
4607
+ function isPlumbingKey(key) {
4608
+ return PLUMBING_KEYS.has(key.toLowerCase());
4609
+ }
4578
4610
  function cellToString(val) {
4579
4611
  return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
4580
4612
  }
@@ -4590,7 +4622,7 @@ function wrapText(text, width) {
4590
4622
  function printTable(data, logFn, externalLogValue, tableRowStyle) {
4591
4623
  if (data.length === 0)
4592
4624
  return;
4593
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
4625
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
4594
4626
  const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
4595
4627
  const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
4596
4628
  logFn(header);
@@ -4612,7 +4644,7 @@ function isNonEmptyPlainObject(value) {
4612
4644
  }
4613
4645
  var NESTED_INDENT = " ";
4614
4646
  function printVerticalTable(data, logFn = console.log, externalLogValue) {
4615
- const keys = Object.keys(data).filter((key) => !["code", "log"].includes(key.toLowerCase()));
4647
+ const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
4616
4648
  if (keys.length === 0)
4617
4649
  return;
4618
4650
  const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
@@ -4643,7 +4675,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
4643
4675
  function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
4644
4676
  if (data.length === 0)
4645
4677
  return;
4646
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
4678
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
4647
4679
  if (keys.length === 0)
4648
4680
  return;
4649
4681
  if (!process.stdout.isTTY) {
@@ -4717,6 +4749,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
4717
4749
  logFn(`Log: ${externalLogValue}`);
4718
4750
  }
4719
4751
  }
4752
+ var MARKDOWN_MAX_CELL = 200;
4753
+ var MARKDOWN_MAX_DEPTH = 3;
4754
+ function markdownHeading(depth) {
4755
+ return "#".repeat(Math.min(3 + depth, 6));
4756
+ }
4757
+ var BACKTICK_RUN = /`+/g;
4758
+ function fencedBlock(text) {
4759
+ const first = text.trimStart()[0];
4760
+ const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
4761
+ const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
4762
+ const fence = "`".repeat(Math.max(3, longestRun + 1));
4763
+ return `${fence}${language}
4764
+ ${text}
4765
+ ${fence}`;
4766
+ }
4767
+ function collapseNewlineRuns(text) {
4768
+ return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
4769
+ `) ? " " : part).join("");
4770
+ }
4771
+ function markdownCell(value) {
4772
+ const text = value instanceof Date ? value.toISOString() : cellToString(value);
4773
+ return collapseNewlineRuns(text).replace(/\|/g, "\\|");
4774
+ }
4775
+ function markdownLabel(key) {
4776
+ return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
4777
+ }
4778
+ function withoutPlumbing(record) {
4779
+ const kept = Object.create(null);
4780
+ for (const [key, value] of Object.entries(record)) {
4781
+ if (!isPlumbingKey(key))
4782
+ kept[key] = value;
4783
+ }
4784
+ return kept;
4785
+ }
4786
+ function rowsWithoutPlumbing(rows) {
4787
+ return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
4788
+ }
4789
+ function markdownTable(rows) {
4790
+ const columns = [];
4791
+ const seen = new Set;
4792
+ for (const row of rows) {
4793
+ for (const key of Object.keys(row)) {
4794
+ if (!seen.has(key)) {
4795
+ seen.add(key);
4796
+ columns.push(key);
4797
+ }
4798
+ }
4799
+ }
4800
+ if (columns.length === 0)
4801
+ return null;
4802
+ const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
4803
+ if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
4804
+ return null;
4805
+ }
4806
+ return [
4807
+ `| ${columns.map(markdownLabel).join(" | ")} |`,
4808
+ `| ${columns.map(() => "---").join(" | ")} |`,
4809
+ ...cells.map((row) => `| ${row.join(" | ")} |`)
4810
+ ].join(`
4811
+ `);
4812
+ }
4813
+ function extractMessageSequence(rows) {
4814
+ const messages = [];
4815
+ for (const row of rows) {
4816
+ const message = extractSingleMessage(row);
4817
+ if (message === null)
4818
+ return null;
4819
+ messages.push(message);
4820
+ }
4821
+ return messages.join(`
4822
+
4823
+ `);
4824
+ }
4825
+ function markdownRows(rows, depth) {
4826
+ if (rows.length === 0)
4827
+ return "(none)";
4828
+ if (!isPlainObjectArray(rows)) {
4829
+ return rows.map((item) => `- ${markdownCell(item)}`).join(`
4830
+ `);
4831
+ }
4832
+ const prose = extractMessageSequence(rows);
4833
+ if (prose !== null)
4834
+ return prose;
4835
+ const table = markdownTable(rows);
4836
+ if (table !== null)
4837
+ return table;
4838
+ if (depth >= MARKDOWN_MAX_DEPTH) {
4839
+ return fencedBlock(JSON.stringify(rows, null, 2));
4840
+ }
4841
+ return rows.map((row, index) => [
4842
+ `${markdownHeading(depth)} ${index + 1}`,
4843
+ markdownObject(row, depth + 1)
4844
+ ].join(`
4845
+
4846
+ `)).join(`
4847
+
4848
+ `);
4849
+ }
4850
+ function markdownObject(obj, depth) {
4851
+ const scalars = [];
4852
+ const blocks = [];
4853
+ for (const [key, value] of Object.entries(obj)) {
4854
+ if (value === undefined)
4855
+ continue;
4856
+ const label = markdownLabel(key);
4857
+ if (Array.isArray(value)) {
4858
+ blocks.push(`${markdownHeading(depth)} ${label}
4859
+
4860
+ ${markdownRows(value, depth + 1)}`);
4861
+ } else if (isNonEmptyPlainObject(value)) {
4862
+ const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
4863
+ if (nested !== "") {
4864
+ blocks.push(`${markdownHeading(depth)} ${label}
4865
+
4866
+ ${nested}`);
4867
+ }
4868
+ } else if (typeof value === "string" && value.includes(`
4869
+ `)) {
4870
+ blocks.push(`**${label}:**
4871
+
4872
+ ${fencedBlock(value)}`);
4873
+ } else {
4874
+ scalars.push(`**${label}:** ${markdownCell(value)}`);
4875
+ }
4876
+ }
4877
+ const sections = scalars.length > 0 ? [scalars.join(`
4878
+ `)] : [];
4879
+ sections.push(...blocks);
4880
+ return sections.join(`
4881
+
4882
+ `);
4883
+ }
4884
+ function extractSingleMessage(payload) {
4885
+ if (!isPlainRecord(payload))
4886
+ return null;
4887
+ const keys = Object.keys(payload);
4888
+ if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
4889
+ return null;
4890
+ const value = payload[keys[0]];
4891
+ return typeof value === "string" ? value : null;
4892
+ }
4893
+ function markdownPayload(payload) {
4894
+ const message = extractSingleMessage(payload);
4895
+ if (message !== null)
4896
+ return message;
4897
+ if (Array.isArray(payload)) {
4898
+ return markdownRows(rowsWithoutPlumbing(payload), 0);
4899
+ }
4900
+ const visible = withoutPlumbing(payload);
4901
+ const paged = splitPagedEnvelope(visible);
4902
+ if (paged !== null) {
4903
+ const meta = markdownObject(paged.meta, 0);
4904
+ const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
4905
+
4906
+ ${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
4907
+ return meta === "" ? rows : `${meta}
4908
+
4909
+ ${rows}`;
4910
+ }
4911
+ return markdownObject(visible, 0);
4912
+ }
4913
+ function isPaginationWorthShowing(value) {
4914
+ if (typeof value !== "object" || value === null)
4915
+ return false;
4916
+ const page = value;
4917
+ return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
4918
+ }
4919
+ function markdownEnvelopeNotes(data) {
4920
+ const envelope = data;
4921
+ const notes = [];
4922
+ const warning = envelope.Warning;
4923
+ if (typeof warning === "string" && warning !== "") {
4924
+ notes.push(`> **Warning:** ${warning}`);
4925
+ }
4926
+ const instructions = envelope.Instructions;
4927
+ if (typeof instructions === "string" && instructions !== "") {
4928
+ notes.push(`> ${instructions}`);
4929
+ }
4930
+ const pagination = envelope.Pagination;
4931
+ if (isPaginationWorthShowing(pagination)) {
4932
+ const body = markdownObject(pagination, 1);
4933
+ if (body !== "") {
4934
+ notes.push(`${markdownHeading(0)} Pagination
4935
+
4936
+ ${body}`);
4937
+ }
4938
+ }
4939
+ const log = envelope.Log;
4940
+ if (typeof log === "string" && log !== "") {
4941
+ notes.push(`**Log:** ${log}`);
4942
+ }
4943
+ return notes;
4944
+ }
4945
+ function renderMarkdown(data) {
4946
+ if (data.Result !== RESULTS.Success) {
4947
+ const failure = data;
4948
+ const sections = [`**Failed:** ${failure.Message}`];
4949
+ if (failure.Data != null) {
4950
+ sections.push(markdownPayload(failure.Data));
4951
+ }
4952
+ if (failure.Instructions) {
4953
+ sections.push(`> ${failure.Instructions}`);
4954
+ }
4955
+ return sections.filter((section) => section !== "").join(`
4956
+
4957
+ `);
4958
+ }
4959
+ if (!("Data" in data) || data.Data == null) {
4960
+ return markdownObject(withoutPlumbing(data), 0);
4961
+ }
4962
+ return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
4963
+
4964
+ `);
4965
+ }
4720
4966
  function toYaml(data) {
4721
4967
  const codec = getYamlCodec();
4722
4968
  if (!codec) {
@@ -6537,16 +6783,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
6537
6783
  errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
6538
6784
  };
6539
6785
  };
6540
- var loadEnvFileAsync = async ({ envPath }) => {
6541
- const fs2 = getFileSystem();
6542
- const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
6543
- if (!await fs2.exists(absolutePath)) {
6544
- throw new Error(`Environment file not found: ${envPath}`);
6545
- }
6546
- const content = await fs2.readFile(absolutePath, "utf-8");
6547
- if (content === null) {
6548
- throw new Error(`Environment file not found: ${envPath}`);
6549
- }
6786
+ var parseEnvContent = (content) => {
6550
6787
  const env = {};
6551
6788
  for (const line of content.split(`
6552
6789
  `)) {
@@ -6567,6 +6804,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
6567
6804
  }
6568
6805
  return env;
6569
6806
  };
6807
+ var loadEnvFileAsync = async ({ envPath }) => {
6808
+ const fs2 = getFileSystem();
6809
+ const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
6810
+ if (!await fs2.exists(absolutePath)) {
6811
+ throw new Error(`Environment file not found: ${envPath}`);
6812
+ }
6813
+ const content = await fs2.readFile(absolutePath, "utf-8");
6814
+ if (content === null) {
6815
+ throw new Error(`Environment file not found: ${envPath}`);
6816
+ }
6817
+ return parseEnvContent(content);
6818
+ };
6570
6819
  var saveEnvFileAsync = async ({
6571
6820
  envPath,
6572
6821
  data,
@@ -7119,4 +7368,4 @@ var TENANT_SELECTION_CODES = new Set([
7119
7368
  ]);
7120
7369
  export { catchError, extractErrorMessage, extractErrorMessageSync, RESULTS, OutputFormatter, classifiedFailure, Command, Option, processContext, isGuid, createHiddenDeprecatedTenantOption, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, getLoginStatusAsync, getAuthContext };
7121
7370
 
7122
- //# debugId=45344E340ADB20ED64756E2164756E21
7371
+ //# debugId=2BD0227A2166399C64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-eyb72tyx.js";
5
- import"./tool-fqszw775.js";
4
+ } from "./tool-911tnq9h.js";
5
+ import"./tool-pbamehqj.js";
6
6
  import"./tool-bndhpxxj.js";
7
7
  import"./tool-1de529jm.js";
8
8
  export {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@uipath/tasks-tool",
3
+ "author": "UiPath",
3
4
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "1.202.1",
5
+ "version": "1.203.0-preview.180",
5
6
  "description": "Manage Action Center tasks.",
6
7
  "publishConfig": {
7
8
  "registry": "https://registry.npmjs.org/"
@@ -17,5 +18,5 @@
17
18
  "files": [
18
19
  "dist"
19
20
  ],
20
- "gitHead": "280b581b7893224d512dd194f47dd57243cc6a5c"
21
+ "gitHead": "4e0a51e3ab2c9d89afd3d35a7b087a7fa58133a0"
21
22
  }