@uipath/agent-tool 1.202.0 → 1.203.0-preview.160

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 (33) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +41 -28
  2. package/dist/{agent-tool-OK5DK57D-zkbmhnmd.js → agent-tool-OK5DK57D-rjan4r3q.js} +2 -2
  3. package/dist/{de-5KVP66U6-1bnf4zt5.js → de-MUJPA4EB-209jpeqe.js} +14 -2
  4. package/dist/{index-4vpac2gy.js → embedded-file-reader-0sjt4nkj.js} +96 -17497
  5. package/dist/{en-X3S6IZ5J-nhkg6pwn.js → en-GN2ZGWUE-03z2df4k.js} +26 -2
  6. package/dist/{es-VFPNVMP5-bx2c337j.js → es-7SE7HX2X-qda7whn6.js} +14 -2
  7. package/dist/{es-MX-XAVLOQW3-q00km2y7.js → es-MX-2MYFZU7X-6v0q5rbn.js} +14 -2
  8. package/dist/executor-tool.js +2 -2
  9. package/dist/first-party-service-srxaftkn.js +27 -0
  10. package/dist/{fr-E5MDO4EG-c3mkty2t.js → fr-MDFKNZ4C-qmypp92m.js} +14 -2
  11. package/dist/index-kmp9fmhb.js +25 -0
  12. package/dist/index-s1mvhfbj.js +17598 -0
  13. package/dist/index.js +5 -5
  14. package/dist/{ja-DPO5PPLO-mysfmznx.js → ja-UTQEAP34-hvyf683h.js} +14 -2
  15. package/dist/{ko-ITOPNIYI-hmxd2asd.js → ko-AXCHW2OK-pkwdcbmx.js} +14 -2
  16. package/dist/{packager-tool-a42jnpy5.js → packager-tool-4mna26cc.js} +27 -3
  17. package/dist/packager-tool-53w8skv5.js +262 -0
  18. package/dist/packager-tool-abj3ftf8.js +1751 -0
  19. package/dist/{packager-tool-pst3whq5.js → packager-tool-byvnxap3.js} +1 -1
  20. package/dist/{packager-tool-wmd0pbnz.js → packager-tool-g5g8vyx2.js} +466 -2217
  21. package/dist/packager-tool-gdtpsdn7.js +342 -0
  22. package/dist/{packager-tool-0srzfhdr.js → packager-tool-mc1499dc.js} +2 -2
  23. package/dist/{packager-tool-p1yrrbpt.js → packager-tool-tnz82jk0.js} +301 -35
  24. package/dist/packager-tool.js +3 -3
  25. package/dist/{pt-YI4VE4YQ-wdkn2dcf.js → pt-3DIO5QWG-hb763vct.js} +14 -2
  26. package/dist/{pt-BR-BXURWX4W-bwfcwhk1.js → pt-BR-Y6K6XHXK-37a932vp.js} +14 -2
  27. package/dist/{ro-RKXZUG7Z-nndrrsq7.js → ro-BWR3ONRR-jmap5ajd.js} +14 -2
  28. package/dist/tool.js +5 -5
  29. package/dist/{tr-AA6O2WSR-86ba4bdf.js → tr-5IIHSFW5-stsb3dar.js} +14 -2
  30. package/dist/{zh-CN-R2KLHXQV-agqr45ds.js → zh-CN-R2KU4U5L-q4yhc33t.js} +14 -2
  31. package/dist/{zh-TW-RJGCQANM-w0x3qc1p.js → zh-TW-GNKMELBF-r4ay2475.js} +14 -2
  32. package/package.json +3 -2
  33. package/dist/packager-tool-kpf6eryr.js +0 -4241
@@ -3111,16 +3111,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
3111
3111
  errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
3112
3112
  };
3113
3113
  };
3114
- var loadEnvFileAsync = async ({ envPath }) => {
3115
- const fs2 = getFileSystem();
3116
- const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
3117
- if (!await fs2.exists(absolutePath)) {
3118
- throw new Error(`Environment file not found: ${envPath}`);
3119
- }
3120
- const content = await fs2.readFile(absolutePath, "utf-8");
3121
- if (content === null) {
3122
- throw new Error(`Environment file not found: ${envPath}`);
3123
- }
3114
+ var parseEnvContent = (content) => {
3124
3115
  const env = {};
3125
3116
  for (const line of content.split(`
3126
3117
  `)) {
@@ -3141,6 +3132,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
3141
3132
  }
3142
3133
  return env;
3143
3134
  };
3135
+ var loadEnvFileAsync = async ({ envPath }) => {
3136
+ const fs2 = getFileSystem();
3137
+ const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
3138
+ if (!await fs2.exists(absolutePath)) {
3139
+ throw new Error(`Environment file not found: ${envPath}`);
3140
+ }
3141
+ const content = await fs2.readFile(absolutePath, "utf-8");
3142
+ if (content === null) {
3143
+ throw new Error(`Environment file not found: ${envPath}`);
3144
+ }
3145
+ return parseEnvContent(content);
3146
+ };
3144
3147
  var saveEnvFileAsync = async ({
3145
3148
  envPath,
3146
3149
  data,
@@ -3973,7 +3976,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
3973
3976
  var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
3974
3977
  var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
3975
3978
  var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
3976
- var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
3979
+ var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
3977
3980
  var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
3978
3981
  var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
3979
3982
  var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
@@ -4020,7 +4023,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
4020
4023
  `(?<![A-Za-z0-9])"(?:[^\\
4021
4024
  ]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
4022
4025
  ].join("|"), "g");
4023
- var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
4026
+ var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
4024
4027
  var COLLAPSED_BODY = "{…}";
4025
4028
  var COLLAPSED_BODY_MARKER = "\x01body\x01";
4026
4029
  var MAX_BODY_NESTING = 8;
@@ -4035,10 +4038,13 @@ function collapseJsonBodies(text) {
4035
4038
  }
4036
4039
  return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
4037
4040
  }
4038
- var TRAILING_PROSE_PUNCT = /[.,;:!?)\]}>'"]+$/;
4041
+ var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
4039
4042
  function peelTrailingPunctuation(match) {
4040
- const trailing = match.match(TRAILING_PROSE_PUNCT)?.[0] ?? "";
4041
- return trailing ? [match.slice(0, -trailing.length), trailing] : [match, ""];
4043
+ let end = match.length;
4044
+ while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
4045
+ end -= 1;
4046
+ }
4047
+ return [match.slice(0, end), match.slice(end)];
4042
4048
  }
4043
4049
  function redactUrl(raw) {
4044
4050
  try {
@@ -4341,6 +4347,22 @@ function parseHttpStatusFromMessage(message) {
4341
4347
  const status = Number(match[1]);
4342
4348
  return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
4343
4349
  }
4350
+ function findHttpStatusInGraph(error) {
4351
+ for (const node of walkErrorGraph(error)) {
4352
+ const response = node.response;
4353
+ const explicit = typeof node.status === "number" ? node.status : response?.status;
4354
+ if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
4355
+ return explicit;
4356
+ }
4357
+ if (typeof node.message === "string") {
4358
+ const parsed = parseHttpStatusFromMessage(node.message);
4359
+ if (parsed !== undefined && parsed >= 400) {
4360
+ return parsed;
4361
+ }
4362
+ }
4363
+ }
4364
+ return;
4365
+ }
4344
4366
  function isHtmlDocument(body) {
4345
4367
  return /^\s*(<!doctype html|<html\b)/i.test(body);
4346
4368
  }
@@ -4454,7 +4476,8 @@ async function extractErrorDetails(error, options) {
4454
4476
  }
4455
4477
  let message;
4456
4478
  let result = "Failure";
4457
- const classification = classifyError(status, error);
4479
+ const classificationStatus = status ?? findHttpStatusInGraph(error);
4480
+ const classification = classifyError(classificationStatus, error);
4458
4481
  let retry = classification.retry;
4459
4482
  if (status === 401) {
4460
4483
  message = DEFAULT_401;
@@ -4530,8 +4553,8 @@ async function extractErrorDetails(error, options) {
4530
4553
  details = describeThrownValue(error);
4531
4554
  }
4532
4555
  const context = {};
4533
- if (status) {
4534
- context.httpStatus = status;
4556
+ if (classificationStatus) {
4557
+ context.httpStatus = classificationStatus;
4535
4558
  }
4536
4559
  if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
4537
4560
  context.errorCode = parsedBody.errorCode;
@@ -5108,7 +5131,8 @@ function readRegistryValue(keyPath, valueName) {
5108
5131
  }
5109
5132
  const [error, output] = catchError2(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
5110
5133
  encoding: "utf-8",
5111
- stdio: ["pipe", "pipe", "pipe"]
5134
+ stdio: ["pipe", "pipe", "pipe"],
5135
+ windowsHide: true
5112
5136
  }));
5113
5137
  if (error) {
5114
5138
  return "";
@@ -5790,28 +5814,32 @@ function isPlainRecord(value) {
5790
5814
  const prototype = Object.getPrototypeOf(value);
5791
5815
  return prototype === Object.prototype || prototype === null;
5792
5816
  }
5793
- function extractPagedRows(value) {
5817
+ function splitPagedEnvelope(value) {
5794
5818
  if (Array.isArray(value) || !isPlainRecord(value))
5795
5819
  return null;
5796
- const entries = Object.values(value);
5820
+ const entries = Object.entries(value);
5797
5821
  if (entries.length === 0)
5798
5822
  return null;
5799
- let rows = null;
5800
- let hasScalarSibling = false;
5801
- for (const entry of entries) {
5823
+ let found = null;
5824
+ const meta = Object.create(null);
5825
+ for (const [key, entry] of entries) {
5802
5826
  if (Array.isArray(entry)) {
5803
- if (rows !== null)
5827
+ if (found !== null)
5804
5828
  return null;
5805
- rows = entry;
5829
+ found = { key, rows: entry };
5806
5830
  } else if (entry !== null && typeof entry === "object") {
5807
5831
  return null;
5808
5832
  } else {
5809
- hasScalarSibling = true;
5833
+ meta[key] = entry;
5810
5834
  }
5811
5835
  }
5812
- if (rows === null || !hasScalarSibling)
5836
+ if (found === null || Object.keys(meta).length === 0)
5813
5837
  return null;
5814
- return rows;
5838
+ return { ...found, meta };
5839
+ }
5840
+ function extractPagedRows(value) {
5841
+ const paged = splitPagedEnvelope(value);
5842
+ return paged === null ? null : paged.rows;
5815
5843
  }
5816
5844
  function toLowerCamelCaseKey(key) {
5817
5845
  if (!key)
@@ -5915,6 +5943,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
5915
5943
  }
5916
5944
  break;
5917
5945
  }
5946
+ case "markdown":
5947
+ logFn(renderMarkdown(data));
5948
+ break;
5918
5949
  default: {
5919
5950
  const hasData = "Data" in data && data.Data != null;
5920
5951
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
@@ -5939,6 +5970,10 @@ function logOutput(data, format = "json", tableRowStyle) {
5939
5970
  printOutput(data, format, (msg) => sink.writeOut(`${msg}
5940
5971
  `), needsAsciiSafeJson(sink), styleFn);
5941
5972
  }
5973
+ var PLUMBING_KEYS = new Set(["code", "log"]);
5974
+ function isPlumbingKey(key) {
5975
+ return PLUMBING_KEYS.has(key.toLowerCase());
5976
+ }
5942
5977
  function cellToString(val) {
5943
5978
  return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
5944
5979
  }
@@ -5954,7 +5989,7 @@ function wrapText(text, width) {
5954
5989
  function printTable(data, logFn, externalLogValue, tableRowStyle) {
5955
5990
  if (data.length === 0)
5956
5991
  return;
5957
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
5992
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
5958
5993
  const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
5959
5994
  const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
5960
5995
  logFn(header);
@@ -5976,7 +6011,7 @@ function isNonEmptyPlainObject(value) {
5976
6011
  }
5977
6012
  var NESTED_INDENT = " ";
5978
6013
  function printVerticalTable(data, logFn = console.log, externalLogValue) {
5979
- const keys = Object.keys(data).filter((key) => !["code", "log"].includes(key.toLowerCase()));
6014
+ const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
5980
6015
  if (keys.length === 0)
5981
6016
  return;
5982
6017
  const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
@@ -6007,7 +6042,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
6007
6042
  function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
6008
6043
  if (data.length === 0)
6009
6044
  return;
6010
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
6045
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
6011
6046
  if (keys.length === 0)
6012
6047
  return;
6013
6048
  if (!process.stdout.isTTY) {
@@ -6081,6 +6116,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
6081
6116
  logFn(`Log: ${externalLogValue}`);
6082
6117
  }
6083
6118
  }
6119
+ var MARKDOWN_MAX_CELL = 200;
6120
+ var MARKDOWN_MAX_DEPTH = 3;
6121
+ function markdownHeading(depth) {
6122
+ return "#".repeat(Math.min(3 + depth, 6));
6123
+ }
6124
+ var BACKTICK_RUN = /`+/g;
6125
+ function fencedBlock(text) {
6126
+ const first = text.trimStart()[0];
6127
+ const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
6128
+ const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
6129
+ const fence = "`".repeat(Math.max(3, longestRun + 1));
6130
+ return `${fence}${language}
6131
+ ${text}
6132
+ ${fence}`;
6133
+ }
6134
+ function collapseNewlineRuns(text) {
6135
+ return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
6136
+ `) ? " " : part).join("");
6137
+ }
6138
+ function markdownCell(value) {
6139
+ const text = value instanceof Date ? value.toISOString() : cellToString(value);
6140
+ return collapseNewlineRuns(text).replace(/\|/g, "\\|");
6141
+ }
6142
+ function markdownLabel(key) {
6143
+ return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
6144
+ }
6145
+ function withoutPlumbing(record) {
6146
+ const kept = Object.create(null);
6147
+ for (const [key, value] of Object.entries(record)) {
6148
+ if (!isPlumbingKey(key))
6149
+ kept[key] = value;
6150
+ }
6151
+ return kept;
6152
+ }
6153
+ function rowsWithoutPlumbing(rows) {
6154
+ return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
6155
+ }
6156
+ function markdownTable(rows) {
6157
+ const columns = [];
6158
+ const seen = new Set;
6159
+ for (const row of rows) {
6160
+ for (const key of Object.keys(row)) {
6161
+ if (!seen.has(key)) {
6162
+ seen.add(key);
6163
+ columns.push(key);
6164
+ }
6165
+ }
6166
+ }
6167
+ if (columns.length === 0)
6168
+ return null;
6169
+ const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
6170
+ if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
6171
+ return null;
6172
+ }
6173
+ return [
6174
+ `| ${columns.map(markdownLabel).join(" | ")} |`,
6175
+ `| ${columns.map(() => "---").join(" | ")} |`,
6176
+ ...cells.map((row) => `| ${row.join(" | ")} |`)
6177
+ ].join(`
6178
+ `);
6179
+ }
6180
+ function extractMessageSequence(rows) {
6181
+ const messages = [];
6182
+ for (const row of rows) {
6183
+ const message = extractSingleMessage(row);
6184
+ if (message === null)
6185
+ return null;
6186
+ messages.push(message);
6187
+ }
6188
+ return messages.join(`
6189
+
6190
+ `);
6191
+ }
6192
+ function markdownRows(rows, depth) {
6193
+ if (rows.length === 0)
6194
+ return "(none)";
6195
+ if (!isPlainObjectArray(rows)) {
6196
+ return rows.map((item) => `- ${markdownCell(item)}`).join(`
6197
+ `);
6198
+ }
6199
+ const prose = extractMessageSequence(rows);
6200
+ if (prose !== null)
6201
+ return prose;
6202
+ const table = markdownTable(rows);
6203
+ if (table !== null)
6204
+ return table;
6205
+ if (depth >= MARKDOWN_MAX_DEPTH) {
6206
+ return fencedBlock(JSON.stringify(rows, null, 2));
6207
+ }
6208
+ return rows.map((row, index) => [
6209
+ `${markdownHeading(depth)} ${index + 1}`,
6210
+ markdownObject(row, depth + 1)
6211
+ ].join(`
6212
+
6213
+ `)).join(`
6214
+
6215
+ `);
6216
+ }
6217
+ function markdownObject(obj, depth) {
6218
+ const scalars = [];
6219
+ const blocks = [];
6220
+ for (const [key, value] of Object.entries(obj)) {
6221
+ if (value === undefined)
6222
+ continue;
6223
+ const label = markdownLabel(key);
6224
+ if (Array.isArray(value)) {
6225
+ blocks.push(`${markdownHeading(depth)} ${label}
6226
+
6227
+ ${markdownRows(value, depth + 1)}`);
6228
+ } else if (isNonEmptyPlainObject(value)) {
6229
+ const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
6230
+ if (nested !== "") {
6231
+ blocks.push(`${markdownHeading(depth)} ${label}
6232
+
6233
+ ${nested}`);
6234
+ }
6235
+ } else if (typeof value === "string" && value.includes(`
6236
+ `)) {
6237
+ blocks.push(`**${label}:**
6238
+
6239
+ ${fencedBlock(value)}`);
6240
+ } else {
6241
+ scalars.push(`**${label}:** ${markdownCell(value)}`);
6242
+ }
6243
+ }
6244
+ const sections = scalars.length > 0 ? [scalars.join(`
6245
+ `)] : [];
6246
+ sections.push(...blocks);
6247
+ return sections.join(`
6248
+
6249
+ `);
6250
+ }
6251
+ function extractSingleMessage(payload) {
6252
+ if (!isPlainRecord(payload))
6253
+ return null;
6254
+ const keys = Object.keys(payload);
6255
+ if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
6256
+ return null;
6257
+ const value = payload[keys[0]];
6258
+ return typeof value === "string" ? value : null;
6259
+ }
6260
+ function markdownPayload(payload) {
6261
+ const message = extractSingleMessage(payload);
6262
+ if (message !== null)
6263
+ return message;
6264
+ if (Array.isArray(payload)) {
6265
+ return markdownRows(rowsWithoutPlumbing(payload), 0);
6266
+ }
6267
+ const visible = withoutPlumbing(payload);
6268
+ const paged = splitPagedEnvelope(visible);
6269
+ if (paged !== null) {
6270
+ const meta = markdownObject(paged.meta, 0);
6271
+ const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
6272
+
6273
+ ${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
6274
+ return meta === "" ? rows : `${meta}
6275
+
6276
+ ${rows}`;
6277
+ }
6278
+ return markdownObject(visible, 0);
6279
+ }
6280
+ function isPaginationWorthShowing(value) {
6281
+ if (typeof value !== "object" || value === null)
6282
+ return false;
6283
+ const page = value;
6284
+ return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
6285
+ }
6286
+ function markdownEnvelopeNotes(data) {
6287
+ const envelope = data;
6288
+ const notes = [];
6289
+ const warning = envelope.Warning;
6290
+ if (typeof warning === "string" && warning !== "") {
6291
+ notes.push(`> **Warning:** ${warning}`);
6292
+ }
6293
+ const instructions = envelope.Instructions;
6294
+ if (typeof instructions === "string" && instructions !== "") {
6295
+ notes.push(`> ${instructions}`);
6296
+ }
6297
+ const pagination = envelope.Pagination;
6298
+ if (isPaginationWorthShowing(pagination)) {
6299
+ const body = markdownObject(pagination, 1);
6300
+ if (body !== "") {
6301
+ notes.push(`${markdownHeading(0)} Pagination
6302
+
6303
+ ${body}`);
6304
+ }
6305
+ }
6306
+ const log = envelope.Log;
6307
+ if (typeof log === "string" && log !== "") {
6308
+ notes.push(`**Log:** ${log}`);
6309
+ }
6310
+ return notes;
6311
+ }
6312
+ function renderMarkdown(data) {
6313
+ if (data.Result !== RESULTS.Success) {
6314
+ const failure = data;
6315
+ const sections = [`**Failed:** ${failure.Message}`];
6316
+ if (failure.Data != null) {
6317
+ sections.push(markdownPayload(failure.Data));
6318
+ }
6319
+ if (failure.Instructions) {
6320
+ sections.push(`> ${failure.Instructions}`);
6321
+ }
6322
+ return sections.filter((section) => section !== "").join(`
6323
+
6324
+ `);
6325
+ }
6326
+ if (!("Data" in data) || data.Data == null) {
6327
+ return markdownObject(withoutPlumbing(data), 0);
6328
+ }
6329
+ return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
6330
+
6331
+ `);
6332
+ }
6084
6333
  function toYaml(data) {
6085
6334
  const codec = getYamlCodec();
6086
6335
  if (!codec) {
@@ -6721,6 +6970,22 @@ Command.prototype.trackedAction = function(context, fn, properties) {
6721
6970
  }
6722
6971
  });
6723
6972
  };
6973
+
6974
+ // ../common/src/option-validators.ts
6975
+ function parseBoundedInt(raw, optionName, bounds) {
6976
+ const normalized = raw.trim();
6977
+ if (normalized === "") {
6978
+ throw new InvalidArgumentError(`${optionName} requires a value (got empty).`);
6979
+ }
6980
+ if (!/^-?\d+$/.test(normalized)) {
6981
+ throw new InvalidArgumentError(`${optionName} must be an integer, got '${normalized}'.`);
6982
+ }
6983
+ const n = parseInt(normalized, 10);
6984
+ if (n < bounds.min || n > bounds.max) {
6985
+ throw new InvalidArgumentError(`${optionName} must be between ${bounds.min} and ${bounds.max}, got ${n}.`);
6986
+ }
6987
+ return n;
6988
+ }
6724
6989
  // ../common/src/classified-failure.ts
6725
6990
  var MAX_QUOTED_BODY_CHARS = 200;
6726
6991
  function summarizePlatformBody(body) {
@@ -9665,8 +9930,9 @@ class UsersApi extends BaseAPI {
9665
9930
  // ../orchestrator-sdk/package.json
9666
9931
  var package_default = {
9667
9932
  name: "@uipath/orchestrator-sdk",
9933
+ author: "UiPath",
9668
9934
  license: "SEE LICENSE IN LICENSE.txt",
9669
- version: "1.202.0",
9935
+ version: "1.203.0",
9670
9936
  repository: {
9671
9937
  type: "git",
9672
9938
  url: "https://github.com/UiPath/cli.git",
@@ -9748,6 +10014,6 @@ async function createApiClient(ApiClass, options) {
9748
10014
  const config = await createOrchestratorConfig(options);
9749
10015
  return new ApiClass(config);
9750
10016
  }
9751
- export { getFileSystem, getLoginStatusAsync, getAuthContext, catchError2 as catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, OutputFormatter, summarizePlatformBody, Command, processContext, isGuid, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, normalizeProjectType, readUipxFile, prepareProjectLocation, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward, PersonalWorkspacesApi, UsersApi, createApiClient };
10017
+ export { getFileSystem, getLoginStatusAsync, getAuthContext, catchError2 as catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, OutputFormatter, summarizePlatformBody, Command, processContext, isGuid, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, normalizeProjectType, toPortableRelativePath, readUipxFile, prepareProjectLocation, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward, PersonalWorkspacesApi, UsersApi, createApiClient };
9752
10018
 
9753
- //# debugId=2FA28E93B11E030B64756E2164756E21
10019
+ //# debugId=88C90198961D7A2064756E2164756E21
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ProjectTypes,
3
3
  toolsFactoryRepository
4
- } from "./packager-tool-pst3whq5.js";
5
- import"./packager-tool-0srzfhdr.js";
4
+ } from "./packager-tool-byvnxap3.js";
5
+ import"./packager-tool-mc1499dc.js";
6
6
  import"./packager-tool-b098y4a2.js";
7
7
  import {
8
8
  __require
@@ -14,7 +14,7 @@ var AgentToolFactory = class {
14
14
  this.supportedTypes = [ProjectTypes.Agent];
15
15
  }
16
16
  async createAsync(logger, fileSystem) {
17
- const { AgentTool: AgentTool2 } = await import("./agent-tool-OK5DK57D-zkbmhnmd.js");
17
+ const { AgentTool: AgentTool2 } = await import("./agent-tool-OK5DK57D-rjan4r3q.js");
18
18
  return new AgentTool2(fileSystem, logger);
19
19
  }
20
20
  };
@@ -1,7 +1,7 @@
1
1
  import"./packager-tool-c23zrhj8.js";
2
2
  import"./packager-tool-1yh8g550.js";
3
3
 
4
- // ../../node_modules/@uipath/flow-schema/dist/pt-YI4VE4YQ.js
4
+ // ../../node_modules/@uipath/flow-schema/dist/pt-3DIO5QWG.js
5
5
  var agentDuplicateToolNames_duplicateName_message = 'O nome da ferramenta "{{name}}" é utilizado por várias ferramentas neste agente. Cada ferramenta tem de ter um nome único.';
6
6
  var agentEmptyVar_unwrittenVariable_message = 'O agente utiliza "$vars.{{root}}" mas nenhum nó atribui um valor a "{{root}}", pelo que estará vazio no runtime. Associe-o a uma saída de nó (por exemplo, "<node>.output") ou atribua-lhe uma origem de valor.';
7
7
  var agentInputRefs_ambiguousUnderscoreRoot_message = 'O pedido referencia "$vars.{{ref}}", mas o nome "{{rootSegment}}" contém "__", que está reservado como o separador de codificação de entrada de agente e não pode fazer a viagem de ida e volta. Mude o nome para remover os carateres de sublinhado duplo.';
@@ -26,7 +26,11 @@ var dataTransform_mapNoMappings_message = 'A operação de mapa "{{nodeLabel}}"
26
26
  var dataTransform_missingCollection_message = '"{{nodeLabel}}" tem uma variável de coleção em falta';
27
27
  var dataTransform_noOperations_message = '"{{nodeLabel}}" não tem operações configuradas';
28
28
  var doWhile_limitOutOfRange_message = "Definir máximo de iterações entre {{min}} e {{max}}";
29
+ var entityQuery_emptyFilterExpression_message = "Escrever uma expressão para cada filtro ou remover o filtro";
30
+ var entityQuery_emptyFilterValueList_message = "Adicione pelo menos um valor ao filtro ou remova o filtro";
31
+ var entityQuery_uncarryableExpression_message = "Armazene esta expressão numa variável ou escreva-a sem espaços, aspas ou barras invertidas";
29
32
  var escalation_appRequired_message = "Selecionar uma aplicação de ação";
33
+ var escalation_memoryArgumentRequired_message = "{{label}}: adicione pelo menos um argumento para a memória de agente ou desative a memória de agente";
30
34
  var escalation_nameRequired_message = "{{label}}: O nome do escalamento é necessário";
31
35
  var escalation_quickFormDuplicateFieldLabel_message = '{{label}}: Vários campos estão etiquetados como "{{fieldLabel}}" – a tarefa de escalamento iria manter apenas um deles. Tornar as etiquetas de campos únicas';
32
36
  var escalation_recipientRequired_message = "{{label}}: É necessários um destinatário de escalamento";
@@ -77,7 +81,11 @@ var pt_default = {
77
81
  dataTransform_missingCollection_message,
78
82
  dataTransform_noOperations_message,
79
83
  doWhile_limitOutOfRange_message,
84
+ entityQuery_emptyFilterExpression_message,
85
+ entityQuery_emptyFilterValueList_message,
86
+ entityQuery_uncarryableExpression_message,
80
87
  escalation_appRequired_message,
88
+ escalation_memoryArgumentRequired_message,
81
89
  escalation_nameRequired_message,
82
90
  escalation_quickFormDuplicateFieldLabel_message,
83
91
  escalation_recipientRequired_message,
@@ -130,7 +138,11 @@ export {
130
138
  dataTransform_noOperations_message,
131
139
  pt_default as default,
132
140
  doWhile_limitOutOfRange_message,
141
+ entityQuery_emptyFilterExpression_message,
142
+ entityQuery_emptyFilterValueList_message,
143
+ entityQuery_uncarryableExpression_message,
133
144
  escalation_appRequired_message,
145
+ escalation_memoryArgumentRequired_message,
134
146
  escalation_nameRequired_message,
135
147
  escalation_quickFormDuplicateFieldLabel_message,
136
148
  escalation_recipientRequired_message,
@@ -158,4 +170,4 @@ export {
158
170
  triggerRequired_message
159
171
  };
160
172
 
161
- //# debugId=7A5192EB78C174AE64756E2164756E21
173
+ //# debugId=50FE3F819785D4A664756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import"./packager-tool-c23zrhj8.js";
2
2
  import"./packager-tool-1yh8g550.js";
3
3
 
4
- // ../../node_modules/@uipath/flow-schema/dist/pt-BR-BXURWX4W.js
4
+ // ../../node_modules/@uipath/flow-schema/dist/pt-BR-Y6K6XHXK.js
5
5
  var agentDuplicateToolNames_duplicateName_message = 'O nome da ferramenta "{{name}}" é usado por várias ferramentas neste agente. Cada ferramenta deve ter um nome exclusivo.';
6
6
  var agentEmptyVar_unwrittenVariable_message = 'O agente usa "$vars.{{root}}", mas nenhum nó atribui um valor a "{{root}}", portanto, estará vazio no runtime. Associe-o a uma saída de nó (por exemplo, "<node>.output" de um conector) ou forneça uma origem de valor.';
7
7
  var agentInputRefs_ambiguousUnderscoreRoot_message = 'Referências de prompt "$vars.{{ref}}", mas o nome "{{rootSegment}}" contém "__", que é reservado como separador de codificação de entrada do agente e não pode ser convertido de volta corretamente. Renomeie-o para remover o sublinhado duplo.';
@@ -26,7 +26,11 @@ var dataTransform_mapNoMappings_message = 'A operação do mapa "{{nodeLabel}}"
26
26
  var dataTransform_missingCollection_message = '"{{nodeLabel}}" não contém uma variável de coleção';
27
27
  var dataTransform_noOperations_message = '"{{nodeLabel}}" não contém operações configuradas';
28
28
  var doWhile_limitOutOfRange_message = "Defina o máximo de iterações entre {{min}} e {{max}}";
29
+ var entityQuery_emptyFilterExpression_message = "Grave uma expressão para cada filtro ou remova o filtro";
30
+ var entityQuery_emptyFilterValueList_message = "Adicione pelo menos um valor ao filtro ou remova o filtro";
31
+ var entityQuery_uncarryableExpression_message = "Armazene esta expressão em uma variável ou escreva-a sem espaços, aspas ou barras invertidas";
29
32
  var escalation_appRequired_message = "Selecionar um aplicativo de ação";
33
+ var escalation_memoryArgumentRequired_message = "{{label}}: adicione pelo menos um argumento para a memória do agente ou a desative";
30
34
  var escalation_nameRequired_message = "{{label}}: o nome do escalonamento é obrigatório";
31
35
  var escalation_quickFormDuplicateFieldLabel_message = '{{label}}: há vários campos rotulados como "{{fieldLabel}}". A tarefa de escalonamento manteria apenas um deles. Tornar os rótulos de campo exclusivos';
32
36
  var escalation_recipientRequired_message = "{{label}}: o destinatário de escalonamento é obrigatório";
@@ -77,7 +81,11 @@ var pt_BR_default = {
77
81
  dataTransform_missingCollection_message,
78
82
  dataTransform_noOperations_message,
79
83
  doWhile_limitOutOfRange_message,
84
+ entityQuery_emptyFilterExpression_message,
85
+ entityQuery_emptyFilterValueList_message,
86
+ entityQuery_uncarryableExpression_message,
80
87
  escalation_appRequired_message,
88
+ escalation_memoryArgumentRequired_message,
81
89
  escalation_nameRequired_message,
82
90
  escalation_quickFormDuplicateFieldLabel_message,
83
91
  escalation_recipientRequired_message,
@@ -130,7 +138,11 @@ export {
130
138
  dataTransform_noOperations_message,
131
139
  pt_BR_default as default,
132
140
  doWhile_limitOutOfRange_message,
141
+ entityQuery_emptyFilterExpression_message,
142
+ entityQuery_emptyFilterValueList_message,
143
+ entityQuery_uncarryableExpression_message,
133
144
  escalation_appRequired_message,
145
+ escalation_memoryArgumentRequired_message,
134
146
  escalation_nameRequired_message,
135
147
  escalation_quickFormDuplicateFieldLabel_message,
136
148
  escalation_recipientRequired_message,
@@ -158,4 +170,4 @@ export {
158
170
  triggerRequired_message
159
171
  };
160
172
 
161
- //# debugId=2091CCF2D2AC07B364756E2164756E21
173
+ //# debugId=5C8AD6D29B36E76E64756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import"./packager-tool-c23zrhj8.js";
2
2
  import"./packager-tool-1yh8g550.js";
3
3
 
4
- // ../../node_modules/@uipath/flow-schema/dist/ro-RKXZUG7Z.js
4
+ // ../../node_modules/@uipath/flow-schema/dist/ro-BWR3ONRR.js
5
5
  var agentDuplicateToolNames_duplicateName_message = "Numele instrumentului „{{name}}” este utilizat de mai multe instrumente pe acest agent. Fiecare instrument trebuie să aibă un nume unic.";
6
6
  var agentEmptyVar_unwrittenVariable_message = 'Agentul folosește "$vars.{{root}}", dar niciun nod nu atribuie o valoare lui "{{root}}", astfel încât va fi gol în timpul execuției. Asociați-l cu un output al unui nod (de exemplu, output-ul "<node>.output" al unui conector) sau oferiți-i o sursă de valoare.';
7
7
  var agentInputRefs_ambiguousUnderscoreRoot_message = "Referința promptului este „$vars.{{ref}}”, dar numele „{{rootSegment}}” conține „__”, care este rezervat ca separator de codificare pentru input-ul agentului și nu poate fi convertit dus-întors. Redenumiți-l pentru a elimina caracterul de subliniere dublu.";
@@ -26,7 +26,11 @@ var dataTransform_mapNoMappings_message = "Operațiunea de mapare „{{nodeLabel
26
26
  var dataTransform_missingCollection_message = "„{{nodeLabel}}” nu are o variabilă de colecție";
27
27
  var dataTransform_noOperations_message = '"{{nodeLabel}}" nu are nicio operațiune configurată';
28
28
  var doWhile_limitOutOfRange_message = "Setați numărul maxim de iterații între {{min}} și {{max}}";
29
+ var entityQuery_emptyFilterExpression_message = "Scrieți o expresie pentru fiecare filtru sau eliminați filtrul";
30
+ var entityQuery_emptyFilterValueList_message = "Adăugați cel puțin o valoare la filtru sau eliminați filtrul";
31
+ var entityQuery_uncarryableExpression_message = "Stocați această expresie într-o variabilă sau scrieți-o fără spații, ghilimele sau bare oblice inverse";
29
32
  var escalation_appRequired_message = "Selectează o aplicație de acțiune";
33
+ var escalation_memoryArgumentRequired_message = "{{label}}: Adăugați cel puțin un argument pentru memoria agentului sau dezactivați memoria agentului";
30
34
  var escalation_nameRequired_message = "{{label}}: Numele escaladării este obligatoriu";
31
35
  var escalation_quickFormDuplicateFieldLabel_message = "{{label}}: Mai multe câmpuri sunt etichetate „{{fieldLabel}}” — sarcina de escaladare ar păstra doar unul dintre ele. Faceți etichetele câmpurilor unice";
32
36
  var escalation_recipientRequired_message = "{{label}}: Destinatarul escaladării este obligatoriu";
@@ -77,7 +81,11 @@ var ro_default = {
77
81
  dataTransform_missingCollection_message,
78
82
  dataTransform_noOperations_message,
79
83
  doWhile_limitOutOfRange_message,
84
+ entityQuery_emptyFilterExpression_message,
85
+ entityQuery_emptyFilterValueList_message,
86
+ entityQuery_uncarryableExpression_message,
80
87
  escalation_appRequired_message,
88
+ escalation_memoryArgumentRequired_message,
81
89
  escalation_nameRequired_message,
82
90
  escalation_quickFormDuplicateFieldLabel_message,
83
91
  escalation_recipientRequired_message,
@@ -130,7 +138,11 @@ export {
130
138
  dataTransform_noOperations_message,
131
139
  ro_default as default,
132
140
  doWhile_limitOutOfRange_message,
141
+ entityQuery_emptyFilterExpression_message,
142
+ entityQuery_emptyFilterValueList_message,
143
+ entityQuery_uncarryableExpression_message,
133
144
  escalation_appRequired_message,
145
+ escalation_memoryArgumentRequired_message,
134
146
  escalation_nameRequired_message,
135
147
  escalation_quickFormDuplicateFieldLabel_message,
136
148
  escalation_recipientRequired_message,
@@ -158,4 +170,4 @@ export {
158
170
  triggerRequired_message
159
171
  };
160
172
 
161
- //# debugId=BF10298C1139774564756E2164756E21
173
+ //# debugId=D10CA8D11343504264756E2164756E21
package/dist/tool.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-wmd0pbnz.js";
5
- import"./packager-tool-a42jnpy5.js";
4
+ } from "./packager-tool-g5g8vyx2.js";
5
+ import"./packager-tool-4mna26cc.js";
6
6
  import"./packager-tool-c23zrhj8.js";
7
- import"./packager-tool-kpf6eryr.js";
8
- import"./packager-tool-p1yrrbpt.js";
9
- import"./packager-tool-0srzfhdr.js";
7
+ import"./packager-tool-abj3ftf8.js";
8
+ import"./packager-tool-tnz82jk0.js";
9
+ import"./packager-tool-mc1499dc.js";
10
10
  import"./packager-tool-b098y4a2.js";
11
11
  import"./packager-tool-1yh8g550.js";
12
12
  export {