@uipath/case-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 (90) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +172 -3
  2. package/dist/{authoring-e757p9dq.js → authoring-kngaggwm.js} +42 -4
  3. package/dist/{case-api-42s4mbpn.js → case-api-v6cjyrfw.js} +8 -8
  4. package/dist/case-bindings-service-1wxfghzd.js +240 -0
  5. package/dist/case-debug-studio-web-service-0624c07c.js +133 -0
  6. package/dist/case-format-service-q345a2fd.js +84 -0
  7. package/dist/{case-pack-service-8exkecnd.js → case-pack-service-29rza2q2.js} +61 -11
  8. package/dist/{case-validate-service-xvxkr026.js → case-validate-service-e06varbt.js} +1422 -40
  9. package/dist/{connector-enrichment-service-xq9xtz95.js → connector-enrichment-service-2pes4b1b.js} +20 -20
  10. package/dist/{connector-lookup-service-bk1wscyr.js → connector-lookup-service-2bkybhkf.js} +7 -7
  11. package/dist/{connector-task-spec-0g34na74.js → connector-task-spec-q59xmzm0.js} +24 -24
  12. package/dist/{de-7XQXX2DK-tqdy5n2b.js → de-FGHEJRCI-rv513mfh.js} +153 -9
  13. package/dist/{de-5KVP66U6-1bnf4zt5.js → de-MUJPA4EB-dpg7t2rw.js} +15 -3
  14. package/dist/{debug-service-f6t4ntmg.js → debug-service-8x087xxt.js} +2 -2
  15. package/dist/{index-j3xb87ag.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
  16. package/dist/{en-5ZGC5VQ3-h581y30k.js → en-BWGKA5OE-1qkvb9rn.js} +140 -2
  17. package/dist/{en-X3S6IZ5J-nhkg6pwn.js → en-FBPVNKFN-dqt573xn.js} +29 -3
  18. package/dist/{enrichment-service-k1zhkzgr.js → enrichment-service-7vbxcwge.js} +7 -7
  19. package/dist/{es-VFPNVMP5-bx2c337j.js → es-7SE7HX2X-8yh1aj2y.js} +15 -3
  20. package/dist/{es-ZGCPPOME-8gazspjj.js → es-KR3ZSNMP-84zphx0x.js} +153 -9
  21. package/dist/{es-MX-XAVLOQW3-q00km2y7.js → es-MX-2MYFZU7X-3rek4r73.js} +15 -3
  22. package/dist/{es-MX-U2VN3SZW-anynsmd8.js → es-MX-XXZJGC4R-2mr8jtgm.js} +153 -9
  23. package/dist/first-party-service-srxaftkn.js +27 -0
  24. package/dist/{fr-E5MDO4EG-c3mkty2t.js → fr-MDFKNZ4C-h4a122k9.js} +15 -3
  25. package/dist/{fr-T3G5GZCT-y3f7xb1q.js → fr-Y6NPVODW-8vr1ja4b.js} +153 -9
  26. package/dist/{index-f0rf4m8p.js → index-8yv94z7r.js} +6 -4
  27. package/dist/{index-kwxe1vep.js → index-fz4ttsde.js} +16 -4
  28. package/dist/index-jxj2jz45.js +16742 -0
  29. package/dist/index-kmp9fmhb.js +25 -0
  30. package/dist/index.js +10 -10
  31. package/dist/{input-reader-vgsdjgst.js → input-reader-pnh948bq.js} +1 -1
  32. package/dist/{ja-BI5K3JDZ-77zat4z2.js → ja-Q5PXKJ2V-p4msxzjd.js} +153 -9
  33. package/dist/{ja-DPO5PPLO-mysfmznx.js → ja-UTQEAP34-8e0q6swp.js} +15 -3
  34. package/dist/{known-types-qryebm95.js → known-types-mn8xn36b.js} +4 -4
  35. package/dist/{ko-ITOPNIYI-hmxd2asd.js → ko-AXCHW2OK-askct7f6.js} +15 -3
  36. package/dist/{ko-JOBF5V7N-4bv0mjje.js → ko-AYBDSRZG-41mdmsg1.js} +153 -9
  37. package/dist/{node-strategy-0267x5e5.js → node-strategy-gc4sg6a2.js} +4 -4
  38. package/dist/{node-sync-service-ac8rzgnj.js → node-sync-service-9d0dqz4z.js} +12 -14
  39. package/dist/{packager-tool-5yw9xatr.js → packager-tool-052kvydg.js} +1 -1
  40. package/dist/{packager-tool-3tfbb641.js → packager-tool-32jxda3r.js} +213 -51
  41. package/dist/packager-tool-53w8skv5.js +262 -0
  42. package/dist/{packager-tool-w0209wf4.js → packager-tool-61hxhgeg.js} +1 -1
  43. package/dist/{packager-tool-58q3tvh7.js → packager-tool-7q6z6npd.js} +166 -28
  44. package/dist/packager-tool-83qnybab.js +1564 -0
  45. package/dist/{packager-tool-eh50gcdk.js → packager-tool-8q7vzh65.js} +5 -4
  46. package/dist/{packager-tool-8rf8qda5.js → packager-tool-adcaxdhs.js} +15 -5
  47. package/dist/{packager-tool-933n6t8x.js → packager-tool-af2s79jb.js} +6 -6
  48. package/dist/{packager-tool-sk2b33km.js → packager-tool-b6368khs.js} +10 -9
  49. package/dist/{packager-tool-d73376xs.js → packager-tool-cg2j4rma.js} +8 -8
  50. package/dist/packager-tool-d4sjk46c.js +88 -0
  51. package/dist/{packager-tool-a42jnpy5.js → packager-tool-d88rqwk8.js} +29 -3
  52. package/dist/packager-tool-dd8bq6az.js +8462 -0
  53. package/dist/packager-tool-gdtpsdn7.js +342 -0
  54. package/dist/{packager-tool-v60h8pvv.js → packager-tool-hrdan5ms.js} +1 -1
  55. package/dist/{packager-tool-bmn50g7v.js → packager-tool-hz1mz8fs.js} +1 -1
  56. package/dist/{packager-tool-v0vdet53.js → packager-tool-jf4hmztd.js} +10 -13
  57. package/dist/{packager-tool-c23zrhj8.js → packager-tool-jysvpt8p.js} +2 -2
  58. package/dist/{packager-tool-jhdf8gt1.js → packager-tool-kkxhc0fp.js} +13554 -8844
  59. package/dist/{packager-tool-4knkebkr.js → packager-tool-kpcjnxd1.js} +269 -23
  60. package/dist/{packager-tool-nx0j1294.js → packager-tool-rhkk0pta.js} +31 -30
  61. package/dist/{packager-tool-d128hs55.js → packager-tool-wefb1zw3.js} +1 -1
  62. package/dist/{packager-tool-3kbkkv2a.js → packager-tool-x4vxexvk.js} +11 -11
  63. package/dist/{packager-tool-dqs5qy9s.js → packager-tool-yrsrzz1a.js} +134 -19
  64. package/dist/packager-tool.js +5 -1501
  65. package/dist/{project-artifacts-43c2ynd9.js → project-artifacts-8snev67g.js} +1 -1
  66. package/dist/{pt-YI4VE4YQ-wdkn2dcf.js → pt-3DIO5QWG-59b3f4bc.js} +15 -3
  67. package/dist/{pt-BR-7DYX2YPT-fqxqzqtf.js → pt-BR-TKHNHMET-sn91xyq0.js} +153 -9
  68. package/dist/{pt-BR-BXURWX4W-bwfcwhk1.js → pt-BR-Y6K6XHXK-mp3hwhw1.js} +15 -3
  69. package/dist/{pt-HTXGGX6Y-97t21dty.js → pt-ROXU257Y-2f6bxev4.js} +153 -9
  70. package/dist/{resourcesSyncService-7ampdrez.js → resourcesSyncService-5bq0j9wf.js} +20 -20
  71. package/dist/{ro-KTNQ3MNU-y08n1x5g.js → ro-AVAWPKOO-b89pw79r.js} +153 -9
  72. package/dist/{ro-RKXZUG7Z-nndrrsq7.js → ro-BWR3ONRR-vzx3hy8a.js} +15 -3
  73. package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
  74. package/dist/sdd-lookup-x08j9g9m.js +48 -0
  75. package/dist/{strict-case-rules-303vjvas.js → strict-case-rules-x6t0vb40.js} +141 -109
  76. package/dist/strict-sdd-audit-8e2fh9jg.js +2520 -0
  77. package/dist/tool.js +9 -9
  78. package/dist/{tr-AA6O2WSR-86ba4bdf.js → tr-5IIHSFW5-hw4cewew.js} +15 -3
  79. package/dist/{tr-XHSSPNK7-cmqyc4wd.js → tr-JMIP7ZSL-c39b6pe4.js} +153 -9
  80. package/dist/{trigger-enrichment-service-cg99dk1f.js → trigger-enrichment-service-kkh3197w.js} +24 -24
  81. package/dist/{zh-CN-2EHQT23P-mr63c4xz.js → zh-CN-IFFXSEJS-9wm9gmrv.js} +153 -9
  82. package/dist/{zh-CN-R2KLHXQV-agqr45ds.js → zh-CN-R2KU4U5L-tc1hat59.js} +15 -3
  83. package/dist/{zh-TW-RJGCQANM-w0x3qc1p.js → zh-TW-GNKMELBF-j674515r.js} +15 -3
  84. package/dist/{zh-TW-MGZCE5BT-c4ekmrz9.js → zh-TW-IYBNYAMG-8727c7v2.js} +153 -9
  85. package/package.json +3 -2
  86. package/dist/case-debug-studio-web-service-npcw81ay.js +0 -335
  87. package/dist/packager-tool-134mvmcm.js +0 -3040
  88. package/dist/packager-tool-ty1t2byf.js +0 -27
  89. package/dist/ru-WBLQ5B2U-8r3c7v6d.js +0 -10
  90. package/dist/strict-sdd-audit-qdmc9e1y.js +0 -1024
@@ -2382,7 +2382,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
2382
2382
  var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
2383
2383
  var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
2384
2384
  var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
2385
- var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
2385
+ var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
2386
2386
  var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
2387
2387
  var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
2388
2388
  var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
@@ -2429,7 +2429,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
2429
2429
  `(?<![A-Za-z0-9])"(?:[^\\
2430
2430
  ]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
2431
2431
  ].join("|"), "g");
2432
- var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
2432
+ var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
2433
2433
  var COLLAPSED_BODY = "{…}";
2434
2434
  var COLLAPSED_BODY_MARKER = "\x01body\x01";
2435
2435
  var MAX_BODY_NESTING = 8;
@@ -2444,10 +2444,13 @@ function collapseJsonBodies(text) {
2444
2444
  }
2445
2445
  return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
2446
2446
  }
2447
- var TRAILING_PROSE_PUNCT = /[.,;:!?)\]}>'"]+$/;
2447
+ var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
2448
2448
  function peelTrailingPunctuation(match) {
2449
- const trailing = match.match(TRAILING_PROSE_PUNCT)?.[0] ?? "";
2450
- return trailing ? [match.slice(0, -trailing.length), trailing] : [match, ""];
2449
+ let end = match.length;
2450
+ while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
2451
+ end -= 1;
2452
+ }
2453
+ return [match.slice(0, end), match.slice(end)];
2451
2454
  }
2452
2455
  function redactUrl(raw) {
2453
2456
  try {
@@ -3127,7 +3130,8 @@ function readRegistryValue(keyPath, valueName) {
3127
3130
  }
3128
3131
  const [error, output] = catchError(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
3129
3132
  encoding: "utf-8",
3130
- stdio: ["pipe", "pipe", "pipe"]
3133
+ stdio: ["pipe", "pipe", "pipe"],
3134
+ windowsHide: true
3131
3135
  }));
3132
3136
  if (error) {
3133
3137
  return "";
@@ -3842,28 +3846,32 @@ function isPlainRecord(value) {
3842
3846
  const prototype = Object.getPrototypeOf(value);
3843
3847
  return prototype === Object.prototype || prototype === null;
3844
3848
  }
3845
- function extractPagedRows(value) {
3849
+ function splitPagedEnvelope(value) {
3846
3850
  if (Array.isArray(value) || !isPlainRecord(value))
3847
3851
  return null;
3848
- const entries = Object.values(value);
3852
+ const entries = Object.entries(value);
3849
3853
  if (entries.length === 0)
3850
3854
  return null;
3851
- let rows = null;
3852
- let hasScalarSibling = false;
3853
- for (const entry of entries) {
3855
+ let found = null;
3856
+ const meta = Object.create(null);
3857
+ for (const [key, entry] of entries) {
3854
3858
  if (Array.isArray(entry)) {
3855
- if (rows !== null)
3859
+ if (found !== null)
3856
3860
  return null;
3857
- rows = entry;
3861
+ found = { key, rows: entry };
3858
3862
  } else if (entry !== null && typeof entry === "object") {
3859
3863
  return null;
3860
3864
  } else {
3861
- hasScalarSibling = true;
3865
+ meta[key] = entry;
3862
3866
  }
3863
3867
  }
3864
- if (rows === null || !hasScalarSibling)
3868
+ if (found === null || Object.keys(meta).length === 0)
3865
3869
  return null;
3866
- return rows;
3870
+ return { ...found, meta };
3871
+ }
3872
+ function extractPagedRows(value) {
3873
+ const paged = splitPagedEnvelope(value);
3874
+ return paged === null ? null : paged.rows;
3867
3875
  }
3868
3876
  function toLowerCamelCaseKey(key) {
3869
3877
  if (!key)
@@ -3967,6 +3975,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
3967
3975
  }
3968
3976
  break;
3969
3977
  }
3978
+ case "markdown":
3979
+ logFn(renderMarkdown(data));
3980
+ break;
3970
3981
  default: {
3971
3982
  const hasData = "Data" in data && data.Data != null;
3972
3983
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
@@ -3991,6 +4002,10 @@ function logOutput(data, format = "json", tableRowStyle) {
3991
4002
  printOutput(data, format, (msg) => sink.writeOut(`${msg}
3992
4003
  `), needsAsciiSafeJson(sink), styleFn);
3993
4004
  }
4005
+ var PLUMBING_KEYS = new Set(["code", "log"]);
4006
+ function isPlumbingKey(key) {
4007
+ return PLUMBING_KEYS.has(key.toLowerCase());
4008
+ }
3994
4009
  function cellToString(val) {
3995
4010
  return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
3996
4011
  }
@@ -4006,7 +4021,7 @@ function wrapText(text, width) {
4006
4021
  function printTable(data, logFn, externalLogValue, tableRowStyle) {
4007
4022
  if (data.length === 0)
4008
4023
  return;
4009
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
4024
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
4010
4025
  const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
4011
4026
  const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
4012
4027
  logFn(header);
@@ -4028,7 +4043,7 @@ function isNonEmptyPlainObject(value) {
4028
4043
  }
4029
4044
  var NESTED_INDENT = " ";
4030
4045
  function printVerticalTable(data, logFn = console.log, externalLogValue) {
4031
- const keys = Object.keys(data).filter((key) => !["code", "log"].includes(key.toLowerCase()));
4046
+ const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
4032
4047
  if (keys.length === 0)
4033
4048
  return;
4034
4049
  const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
@@ -4059,7 +4074,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
4059
4074
  function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
4060
4075
  if (data.length === 0)
4061
4076
  return;
4062
- const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
4077
+ const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
4063
4078
  if (keys.length === 0)
4064
4079
  return;
4065
4080
  if (!process.stdout.isTTY) {
@@ -4133,6 +4148,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
4133
4148
  logFn(`Log: ${externalLogValue}`);
4134
4149
  }
4135
4150
  }
4151
+ var MARKDOWN_MAX_CELL = 200;
4152
+ var MARKDOWN_MAX_DEPTH = 3;
4153
+ function markdownHeading(depth) {
4154
+ return "#".repeat(Math.min(3 + depth, 6));
4155
+ }
4156
+ var BACKTICK_RUN = /`+/g;
4157
+ function fencedBlock(text) {
4158
+ const first = text.trimStart()[0];
4159
+ const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
4160
+ const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
4161
+ const fence = "`".repeat(Math.max(3, longestRun + 1));
4162
+ return `${fence}${language}
4163
+ ${text}
4164
+ ${fence}`;
4165
+ }
4166
+ function collapseNewlineRuns(text) {
4167
+ return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
4168
+ `) ? " " : part).join("");
4169
+ }
4170
+ function markdownCell(value) {
4171
+ const text = value instanceof Date ? value.toISOString() : cellToString(value);
4172
+ return collapseNewlineRuns(text).replace(/\|/g, "\\|");
4173
+ }
4174
+ function markdownLabel(key) {
4175
+ return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
4176
+ }
4177
+ function withoutPlumbing(record) {
4178
+ const kept = Object.create(null);
4179
+ for (const [key, value] of Object.entries(record)) {
4180
+ if (!isPlumbingKey(key))
4181
+ kept[key] = value;
4182
+ }
4183
+ return kept;
4184
+ }
4185
+ function rowsWithoutPlumbing(rows) {
4186
+ return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
4187
+ }
4188
+ function markdownTable(rows) {
4189
+ const columns = [];
4190
+ const seen = new Set;
4191
+ for (const row of rows) {
4192
+ for (const key of Object.keys(row)) {
4193
+ if (!seen.has(key)) {
4194
+ seen.add(key);
4195
+ columns.push(key);
4196
+ }
4197
+ }
4198
+ }
4199
+ if (columns.length === 0)
4200
+ return null;
4201
+ const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
4202
+ if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
4203
+ return null;
4204
+ }
4205
+ return [
4206
+ `| ${columns.map(markdownLabel).join(" | ")} |`,
4207
+ `| ${columns.map(() => "---").join(" | ")} |`,
4208
+ ...cells.map((row) => `| ${row.join(" | ")} |`)
4209
+ ].join(`
4210
+ `);
4211
+ }
4212
+ function extractMessageSequence(rows) {
4213
+ const messages = [];
4214
+ for (const row of rows) {
4215
+ const message = extractSingleMessage(row);
4216
+ if (message === null)
4217
+ return null;
4218
+ messages.push(message);
4219
+ }
4220
+ return messages.join(`
4221
+
4222
+ `);
4223
+ }
4224
+ function markdownRows(rows, depth) {
4225
+ if (rows.length === 0)
4226
+ return "(none)";
4227
+ if (!isPlainObjectArray(rows)) {
4228
+ return rows.map((item) => `- ${markdownCell(item)}`).join(`
4229
+ `);
4230
+ }
4231
+ const prose = extractMessageSequence(rows);
4232
+ if (prose !== null)
4233
+ return prose;
4234
+ const table = markdownTable(rows);
4235
+ if (table !== null)
4236
+ return table;
4237
+ if (depth >= MARKDOWN_MAX_DEPTH) {
4238
+ return fencedBlock(JSON.stringify(rows, null, 2));
4239
+ }
4240
+ return rows.map((row, index) => [
4241
+ `${markdownHeading(depth)} ${index + 1}`,
4242
+ markdownObject(row, depth + 1)
4243
+ ].join(`
4244
+
4245
+ `)).join(`
4246
+
4247
+ `);
4248
+ }
4249
+ function markdownObject(obj, depth) {
4250
+ const scalars = [];
4251
+ const blocks = [];
4252
+ for (const [key, value] of Object.entries(obj)) {
4253
+ if (value === undefined)
4254
+ continue;
4255
+ const label = markdownLabel(key);
4256
+ if (Array.isArray(value)) {
4257
+ blocks.push(`${markdownHeading(depth)} ${label}
4258
+
4259
+ ${markdownRows(value, depth + 1)}`);
4260
+ } else if (isNonEmptyPlainObject(value)) {
4261
+ const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
4262
+ if (nested !== "") {
4263
+ blocks.push(`${markdownHeading(depth)} ${label}
4264
+
4265
+ ${nested}`);
4266
+ }
4267
+ } else if (typeof value === "string" && value.includes(`
4268
+ `)) {
4269
+ blocks.push(`**${label}:**
4270
+
4271
+ ${fencedBlock(value)}`);
4272
+ } else {
4273
+ scalars.push(`**${label}:** ${markdownCell(value)}`);
4274
+ }
4275
+ }
4276
+ const sections = scalars.length > 0 ? [scalars.join(`
4277
+ `)] : [];
4278
+ sections.push(...blocks);
4279
+ return sections.join(`
4280
+
4281
+ `);
4282
+ }
4283
+ function extractSingleMessage(payload) {
4284
+ if (!isPlainRecord(payload))
4285
+ return null;
4286
+ const keys = Object.keys(payload);
4287
+ if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
4288
+ return null;
4289
+ const value = payload[keys[0]];
4290
+ return typeof value === "string" ? value : null;
4291
+ }
4292
+ function markdownPayload(payload) {
4293
+ const message = extractSingleMessage(payload);
4294
+ if (message !== null)
4295
+ return message;
4296
+ if (Array.isArray(payload)) {
4297
+ return markdownRows(rowsWithoutPlumbing(payload), 0);
4298
+ }
4299
+ const visible = withoutPlumbing(payload);
4300
+ const paged = splitPagedEnvelope(visible);
4301
+ if (paged !== null) {
4302
+ const meta = markdownObject(paged.meta, 0);
4303
+ const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
4304
+
4305
+ ${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
4306
+ return meta === "" ? rows : `${meta}
4307
+
4308
+ ${rows}`;
4309
+ }
4310
+ return markdownObject(visible, 0);
4311
+ }
4312
+ function isPaginationWorthShowing(value) {
4313
+ if (typeof value !== "object" || value === null)
4314
+ return false;
4315
+ const page = value;
4316
+ return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
4317
+ }
4318
+ function markdownEnvelopeNotes(data) {
4319
+ const envelope = data;
4320
+ const notes = [];
4321
+ const warning = envelope.Warning;
4322
+ if (typeof warning === "string" && warning !== "") {
4323
+ notes.push(`> **Warning:** ${warning}`);
4324
+ }
4325
+ const instructions = envelope.Instructions;
4326
+ if (typeof instructions === "string" && instructions !== "") {
4327
+ notes.push(`> ${instructions}`);
4328
+ }
4329
+ const pagination = envelope.Pagination;
4330
+ if (isPaginationWorthShowing(pagination)) {
4331
+ const body = markdownObject(pagination, 1);
4332
+ if (body !== "") {
4333
+ notes.push(`${markdownHeading(0)} Pagination
4334
+
4335
+ ${body}`);
4336
+ }
4337
+ }
4338
+ const log = envelope.Log;
4339
+ if (typeof log === "string" && log !== "") {
4340
+ notes.push(`**Log:** ${log}`);
4341
+ }
4342
+ return notes;
4343
+ }
4344
+ function renderMarkdown(data) {
4345
+ if (data.Result !== RESULTS.Success) {
4346
+ const failure = data;
4347
+ const sections = [`**Failed:** ${failure.Message}`];
4348
+ if (failure.Data != null) {
4349
+ sections.push(markdownPayload(failure.Data));
4350
+ }
4351
+ if (failure.Instructions) {
4352
+ sections.push(`> ${failure.Instructions}`);
4353
+ }
4354
+ return sections.filter((section) => section !== "").join(`
4355
+
4356
+ `);
4357
+ }
4358
+ if (!("Data" in data) || data.Data == null) {
4359
+ return markdownObject(withoutPlumbing(data), 0);
4360
+ }
4361
+ return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
4362
+
4363
+ `);
4364
+ }
4136
4365
  function toYaml(data) {
4137
4366
  const codec = getYamlCodec();
4138
4367
  if (!codec) {
@@ -4582,6 +4811,22 @@ function parseHttpStatusFromMessage2(message) {
4582
4811
  const status = Number(match[1]);
4583
4812
  return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
4584
4813
  }
4814
+ function findHttpStatusInGraph(error) {
4815
+ for (const node of walkErrorGraph(error)) {
4816
+ const response = node.response;
4817
+ const explicit = typeof node.status === "number" ? node.status : response?.status;
4818
+ if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
4819
+ return explicit;
4820
+ }
4821
+ if (typeof node.message === "string") {
4822
+ const parsed = parseHttpStatusFromMessage2(node.message);
4823
+ if (parsed !== undefined && parsed >= 400) {
4824
+ return parsed;
4825
+ }
4826
+ }
4827
+ }
4828
+ return;
4829
+ }
4585
4830
  function isHtmlDocument(body) {
4586
4831
  return /^\s*(<!doctype html|<html\b)/i.test(body);
4587
4832
  }
@@ -4695,7 +4940,8 @@ async function extractErrorDetails(error, options) {
4695
4940
  }
4696
4941
  let message;
4697
4942
  let result = "Failure";
4698
- const classification = classifyError2(status, error);
4943
+ const classificationStatus = status ?? findHttpStatusInGraph(error);
4944
+ const classification = classifyError2(classificationStatus, error);
4699
4945
  let retry = classification.retry;
4700
4946
  if (status === 401) {
4701
4947
  message = DEFAULT_401;
@@ -4771,8 +5017,8 @@ async function extractErrorDetails(error, options) {
4771
5017
  details = describeThrownValue(error);
4772
5018
  }
4773
5019
  const context = {};
4774
- if (status) {
4775
- context.httpStatus = status;
5020
+ if (classificationStatus) {
5021
+ context.httpStatus = classificationStatus;
4776
5022
  }
4777
5023
  if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
4778
5024
  context.errorCode = parsedBody.errorCode;
@@ -5722,4 +5968,4 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
5722
5968
  var factorySlot = singleton("PackagerFactoryProvider");
5723
5969
  export { catchError, extractErrorMessage, logger, getOutputFormat, getOutputFormatExplicit, RESULTS, EXIT_CODES, Pagination, OutputFormatter, summarizePlatformBody, InvalidArgumentError, Command, Option, isPreviewBuild, processContext, UIPATH_HOME_DIR, DEFAULT_PAGE_SIZE, hashContent, instructionsFor, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, readStdin };
5724
5970
 
5725
- //# debugId=52790AF02152404964756E2164756E21
5971
+ //# debugId=06DE45F65B6D555764756E2164756E21
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  resolveMaestroRegistry
3
- } from "./packager-tool-v60h8pvv.js";
3
+ } from "./packager-tool-hrdan5ms.js";
4
4
  import {
5
5
  ConnectionsApi,
6
6
  ElementsApi,
7
7
  createApiClient,
8
8
  getConnectorActivityMetadataV4,
9
9
  isV4ActivityConfiguration
10
- } from "./packager-tool-sk2b33km.js";
10
+ } from "./packager-tool-b6368khs.js";
11
11
  import {
12
12
  MANIFEST_FEATURE_FLAGS,
13
13
  ManifestClient,
@@ -15,16 +15,16 @@ import {
15
15
  getServiceType,
16
16
  listKnownSdkNodes,
17
17
  taskDefinitionsToNodeManifests
18
- } from "./packager-tool-jhdf8gt1.js";
18
+ } from "./packager-tool-kkxhc0fp.js";
19
19
  import {
20
20
  getLoginStatusAsync
21
- } from "./packager-tool-dqs5qy9s.js";
21
+ } from "./packager-tool-yrsrzz1a.js";
22
22
  import {
23
23
  UIPATH_HOME_DIR,
24
24
  catchError,
25
25
  hashContent,
26
26
  logger
27
- } from "./packager-tool-4knkebkr.js";
27
+ } from "./packager-tool-kpcjnxd1.js";
28
28
  import {
29
29
  getFileSystem
30
30
  } from "./packager-tool-0v3s8r01.js";
@@ -155,7 +155,8 @@ function applyOptionalFieldProps(compact, field) {
155
155
  lookupValue: field.reference.lookupValue,
156
156
  lookupNames: field.reference.lookupNames,
157
157
  path: field.reference.path,
158
- childPath: field.reference.childPath
158
+ childPath: field.reference.childPath,
159
+ scriptRef: field.reference.scriptRef
159
160
  };
160
161
  }
161
162
  }
@@ -308,8 +309,8 @@ async function fetchConnectorMetadata(connectorKey, objectName, connectionId) {
308
309
  });
309
310
  return await response.raw.json();
310
311
  }
311
- async function fetchConnectorActivityMetadataV4(connectorKey, activityName) {
312
- return await getConnectorActivityMetadataV4(undefined, connectorKey, activityName);
312
+ async function fetchConnectorActivityMetadataV4(connectorKey, objectName) {
313
+ return await getConnectorActivityMetadataV4(undefined, connectorKey, objectName);
313
314
  }
314
315
  function buildEnrichedActivityNode(node, metadata, method) {
315
316
  const connectorMethodInfo = metadata?.metadata?.method?.[method];
@@ -343,16 +344,16 @@ async function enrichConnectorActivityNode(node, connectionId) {
343
344
  }
344
345
  async function enrichV4ConnectorActivityNode(node, connectionId, config) {
345
346
  const connectorKey = config?.connectorKey;
346
- const activityName = config?.activityName;
347
+ const objectName = config?.objectName;
347
348
  const method = config?.httpMethod;
348
- if (!connectorKey || !activityName || !method) {
349
- logger.warn("v4 IS enrichment skipped: node configuration carries no connectorKey/activityName/httpMethod.");
349
+ if (!connectorKey || !objectName || !method) {
350
+ logger.warn("v4 IS enrichment skipped: node configuration carries no connectorKey/objectName/httpMethod.");
350
351
  return node;
351
352
  }
352
353
  if (connectionId) {
353
354
  logger.warn("v4 metadata endpoints are not connection-scoped — --connection-id is ignored for 4.0.0 enrichment.");
354
355
  }
355
- const [error, metadata] = await catchError(fetchConnectorActivityMetadataV4(connectorKey, activityName));
356
+ const [error, metadata] = await catchError(fetchConnectorActivityMetadataV4(connectorKey, objectName));
356
357
  if (error) {
357
358
  logger.warn(`IS v4 enrichment failed: ${error.message}`);
358
359
  return node;
@@ -453,7 +454,7 @@ async function getPrecacheNode(nodeType, options) {
453
454
  }
454
455
 
455
456
  // ../maestro-sdk/src/registry/node-storage.ts
456
- var CACHE_FORMAT_VERSION = 3;
457
+ var CACHE_FORMAT_VERSION = 5;
457
458
  var INDEX_FILE = "index.json";
458
459
  var METADATA_FILE = "index.meta.json";
459
460
  var SEARCH_INDEX_FILE = "search-index.json";
@@ -648,12 +649,17 @@ async function rederiveNodeIndexArtifacts() {
648
649
  return saveNodeIndex(nodes);
649
650
  }
650
651
 
652
+ // ../maestro-sdk/src/registry/agent-metadata-reader.ts
653
+ var agentProjectMetadataReader;
654
+ function getAgentProjectMetadataReader() {
655
+ return agentProjectMetadataReader;
656
+ }
657
+
651
658
  // ../maestro-sdk/src/registry/solution-discovery.ts
652
659
  var EMPTY_IO = {
653
660
  inputs: {},
654
661
  outputs: {}
655
662
  };
656
- var agentProjectMetadataReader;
657
663
  function findEnclosingProjectId(solutionDir, projects, cwd) {
658
664
  const fs = getFileSystem();
659
665
  for (const p of projects) {
@@ -823,7 +829,7 @@ async function buildInSolutionNodeManifests(ctx) {
823
829
  if (!serviceType)
824
830
  continue;
825
831
  const projectDir = fs.path.resolve(ctx.solutionDir, fs.path.dirname(project.ProjectRelativePath));
826
- const reader = agentProjectMetadataReader;
832
+ const reader = getAgentProjectMetadataReader();
827
833
  const [name, io, projectMetadata] = await Promise.all([
828
834
  readProjectName(projectDir),
829
835
  readProjectEntryPointIO(projectDir),
@@ -858,12 +864,6 @@ async function buildInSolutionNodeManifests(ctx) {
858
864
 
859
865
  // ../maestro-sdk/src/registry/node-sync-service.ts
860
866
  var CACHE_EXPIRATION = 30 * 60 * 1000;
861
- var NODE_EXCLUSIONS = [
862
- (t) => t.includes("uipath-uipath-dataservice") && /-v3-?$/i.test(t)
863
- ];
864
- function isExcludedNodeType(nodeType) {
865
- return typeof nodeType === "string" && NODE_EXCLUSIONS.some((match) => match(nodeType));
866
- }
867
867
  function isMissingIndexError(error) {
868
868
  return error.message.includes("No node index found") || error.message.includes("Node index is outdated");
869
869
  }
@@ -973,7 +973,11 @@ var ENABLED_MANIFEST_FLAGS = new Set([
973
973
  MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_GET_CONVERSATION_CONTEXT,
974
974
  MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_INCOMING_CALL_TRIGGER,
975
975
  MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_CREATE_OUTGOING_CALL,
976
- MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_END_CALL
976
+ MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_END_CALL,
977
+ MANIFEST_FEATURE_FLAGS.READ_ENTITY,
978
+ MANIFEST_FEATURE_FLAGS.CREATE_ENTITY,
979
+ MANIFEST_FEATURE_FLAGS.UPDATE_ENTITY,
980
+ MANIFEST_FEATURE_FLAGS.DELETE_ENTITY
977
981
  ]);
978
982
  async function pullRemoteNodes() {
979
983
  const loginStatus = await getLoginStatusAsync();
@@ -986,7 +990,7 @@ async function pullRemoteNodes() {
986
990
  inlineAgentNodes: true
987
991
  });
988
992
  return {
989
- nodes: applyExclusions(manifest2.nodes || []),
993
+ nodes: manifest2.nodes || [],
990
994
  source: "ootb",
991
995
  cacheable: false,
992
996
  info: "Using OOTB nodes because you are not logged in. Cache was not updated."
@@ -1006,7 +1010,7 @@ async function pullRemoteNodes() {
1006
1010
  }));
1007
1011
  if (!manifestError) {
1008
1012
  return {
1009
- nodes: applyExclusions(manifest.nodes || []),
1013
+ nodes: manifest.nodes || [],
1010
1014
  source: "authenticated",
1011
1015
  cacheable: true
1012
1016
  };
@@ -1015,15 +1019,12 @@ async function pullRemoteNodes() {
1015
1019
  inlineAgentNodes: true
1016
1020
  });
1017
1021
  return {
1018
- nodes: applyExclusions(fallbackManifest.nodes || []),
1022
+ nodes: fallbackManifest.nodes || [],
1019
1023
  source: "ootb",
1020
1024
  cacheable: false,
1021
1025
  info: `Failed to refresh authenticated nodes with error: ${manifestError}. Using OOTB nodes without updating cache.`
1022
1026
  };
1023
1027
  }
1024
- function applyExclusions(nodes) {
1025
- return nodes.filter((n) => !isExcludedNodeType(n.nodeType));
1026
- }
1027
1028
  async function getNodesWithCacheFallback() {
1028
1029
  const [error, nodes] = await catchError(loadNodeIndex());
1029
1030
  if (error) {
@@ -1212,6 +1213,6 @@ async function searchNodesWithFilters(keyword, filters, options) {
1212
1213
  return searchWithFilters(nodes, keyword, filters);
1213
1214
  }
1214
1215
 
1215
- export { extractTriggerEventParameters, extractTriggerFilterFields, extractActivityFilterFields, fetchConnectorTriggerMetadata, fetchConnectionInfo, fetchConnectorMetadata, findSolutionFromCwd, isExcludedNodeType, pullNodes, pullRemoteNodes, listNodes, searchNodeSummariesWithAvailability, searchNodes, getNode, getNodeEnriched, searchNodesWithFilters };
1216
+ export { extractTriggerEventParameters, extractTriggerFilterFields, extractActivityFilterFields, fetchConnectorTriggerMetadata, fetchConnectionInfo, fetchConnectorMetadata, findSolutionFromCwd, pullNodes, pullRemoteNodes, listNodes, searchNodeSummariesWithAvailability, searchNodes, getNode, getNodeEnriched, searchNodesWithFilters };
1216
1217
 
1217
- //# debugId=1F22B346AB51E6F164756E2164756E21
1218
+ //# debugId=9DAE8A5FEA38FC7564756E2164756E21
@@ -2,7 +2,7 @@ import {
2
2
  catchError,
3
3
  hashContent,
4
4
  logger
5
- } from "./packager-tool-4knkebkr.js";
5
+ } from "./packager-tool-kpcjnxd1.js";
6
6
  import {
7
7
  getFileSystem
8
8
  } from "./packager-tool-0v3s8r01.js";
@@ -1,10 +1,14 @@
1
- import {
2
- fetchConnectorMetadata
3
- } from "./packager-tool-nx0j1294.js";
4
1
  import {
5
2
  fetchConnectorConnections,
6
3
  lookupTypeCacheEntry
7
- } from "./packager-tool-933n6t8x.js";
4
+ } from "./packager-tool-af2s79jb.js";
5
+ import {
6
+ addVarIdsToInputsOutputs,
7
+ buildErrorOutput
8
+ } from "./packager-tool-61hxhgeg.js";
9
+ import {
10
+ fetchConnectorMetadata
11
+ } from "./packager-tool-rhkk0pta.js";
8
12
  import {
9
13
  ElementsApi,
10
14
  assertActivityMetadataResolved,
@@ -12,17 +16,13 @@ import {
12
16
  createApiClient,
13
17
  createConfiguredActivityClient,
14
18
  extractMultipartParameters
15
- } from "./packager-tool-sk2b33km.js";
16
- import {
17
- addVarIdsToInputsOutputs,
18
- buildErrorOutput
19
- } from "./packager-tool-w0209wf4.js";
19
+ } from "./packager-tool-b6368khs.js";
20
20
  import {
21
21
  createConnectorBindings
22
22
  } from "./packager-tool-0mj06yen.js";
23
23
  import {
24
24
  catchError
25
- } from "./packager-tool-4knkebkr.js";
25
+ } from "./packager-tool-kpcjnxd1.js";
26
26
 
27
27
  // src/services/connector-enrichment-service.ts
28
28
  function parseEntryConfiguration(entry) {
@@ -543,4 +543,4 @@ async function enrichConnectorActivity(activityTypeId, connectionId, indexType =
543
543
 
544
544
  export { parseEntryConfiguration, resolveActivityOperation, fetchObjectSwaggerPath, fetchObjectMethodConfig, extractFields, normalizeFields, UNSAFE_KEYS, nestDottedKeys, mapISFieldsToInputOutputs, buildParameterInputs, buildConnectorContext, extractFieldDefinitions, enrichConnectorRegistryEntry, enrichConnectorActivity };
545
545
 
546
- //# debugId=F2D3B4FF2B4063C064756E2164756E21
546
+ //# debugId=3B7A9B9E859645AF64756E2164756E21