@uipath/conversational-tool 1.202.0-preview.134 → 1.202.0-preview.137

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.
@@ -4,7 +4,7 @@ import {
4
4
  getLoginStatusAsync,
5
5
  getSdkUserAgentToken,
6
6
  package_default
7
- } from "./tool-e5a5hzvv.js";
7
+ } from "./tool-8971255k.js";
8
8
  import"./tool-1yh8g550.js";
9
9
 
10
10
  // src/api/cas-client.ts
package/dist/index.js CHANGED
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./tool-pvq2q8nz.js";
5
+ } from "./tool-y3h0vjrk.js";
6
6
  import"./tool-nkyhbf79.js";
7
7
  import {
8
8
  Command
9
- } from "./tool-e5a5hzvv.js";
9
+ } from "./tool-8971255k.js";
10
10
  import"./tool-mpvp5rqs.js";
11
11
  import"./tool-1yh8g550.js";
12
12
 
@@ -1334,16 +1334,21 @@ function requireLoader() {
1334
1334
  state.result += _result;
1335
1335
  }
1336
1336
  }
1337
+ function chargeMergeWork(state) {
1338
+ state.totalMergeKeys++;
1339
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1340
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1341
+ }
1342
+ }
1337
1343
  function mergeMappings(state, destination, source, overridableKeys) {
1338
1344
  if (!common2.isObject(source)) {
1339
1345
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1340
1346
  }
1347
+ chargeMergeWork(state);
1341
1348
  const sourceKeys = Object.keys(source);
1342
1349
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
1343
1350
  const key = sourceKeys[index];
1344
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1345
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1346
- }
1351
+ chargeMergeWork(state);
1347
1352
  if (!_hasOwnProperty.call(destination, key)) {
1348
1353
  setProperty(destination, key, source[key]);
1349
1354
  overridableKeys[key] = true;
@@ -1371,6 +1376,9 @@ function requireLoader() {
1371
1376
  }
1372
1377
  if (keyTag === "tag:yaml.org,2002:merge") {
1373
1378
  if (Array.isArray(valueNode)) {
1379
+ if (valueNode.length > 100) {
1380
+ throwError(state, "abnormal merge sequence size");
1381
+ }
1374
1382
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
1375
1383
  mergeMappings(state, _result, valueNode[index], overridableKeys);
1376
1384
  }
@@ -3142,4 +3150,4 @@ export {
3142
3150
  types
3143
3151
  };
3144
3152
 
3145
- //# debugId=3FF8535573D0966A64756E2164756E21
3153
+ //# debugId=9FA8E718B2F80BEA64756E2164756E21
@@ -2100,7 +2100,7 @@ var require_commander = __commonJS(function(exports) {
2100
2100
  var package_default = {
2101
2101
  name: "@uipath/conversational-tool",
2102
2102
  license: "MIT",
2103
- version: "1.202.0-preview.134",
2103
+ version: "1.202.0-preview.137",
2104
2104
  description: "Handle conversations with deployed UiPath conversational processes.",
2105
2105
  publishConfig: {
2106
2106
  registry: "https://npm.pkg.github.com/"
@@ -3571,7 +3571,7 @@ var jmespathSlot = singleton("JmespathCodec");
3571
3571
  async function loadOutputCodecsAsync(needed) {
3572
3572
  const loads = [];
3573
3573
  if (needed.yaml && yamlSlot.get() === undefined) {
3574
- loads.push(import("./js-yaml-87tvr6f6.js").then((mod) => {
3574
+ loads.push(import("./js-yaml-87cdx6bm.js").then((mod) => {
3575
3575
  yamlSlot.set(mod);
3576
3576
  }));
3577
3577
  }
@@ -4470,6 +4470,14 @@ var RETRY_HINTS = [
4470
4470
  "RetryAfter30Seconds",
4471
4471
  "RetryAfter60Seconds"
4472
4472
  ];
4473
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
4474
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
4475
+ function isCliErrorCode(value) {
4476
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
4477
+ }
4478
+ function isRetryHint(value) {
4479
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
4480
+ }
4473
4481
  var RESULTS = {
4474
4482
  Success: "Success",
4475
4483
  Failure: "Failure",
@@ -5257,8 +5265,6 @@ function emitInvocationRequest(name, success, properties) {
5257
5265
 
5258
5266
  // ../common/src/trackedAction.ts
5259
5267
  var pollSignalSlot = singleton("PollSignal");
5260
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
5261
- var retryHintValues = new Set(RETRY_HINTS);
5262
5268
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
5263
5269
  var processContext = {
5264
5270
  exit: (code) => {
@@ -5346,12 +5352,6 @@ function deriveCommandPath(cmd) {
5346
5352
  }
5347
5353
  return commandTelemetryName(parts);
5348
5354
  }
5349
- function isCliErrorCode(value) {
5350
- return typeof value === "string" && cliErrorCodeValues.has(value);
5351
- }
5352
- function isRetryHint(value) {
5353
- return typeof value === "string" && retryHintValues.has(value);
5354
- }
5355
5355
  function isErrorContext(value) {
5356
5356
  return value !== null && typeof value === "object";
5357
5357
  }
@@ -7159,4 +7159,4 @@ var CLI_EXTERNAL_USER_ID = "app-user-cli-cas";
7159
7159
 
7160
7160
  export { package_default, getFileSystem, catchError, extractErrorDetails, extractErrorMessageSync, RESULTS, EXIT_CODES, OutputFormatter, InvalidArgumentError, Command, processContext, requireConfirmation, instructionsFor, canPrompt, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, getLoginStatusAsync, CLI_EXTERNAL_USER_ID };
7161
7161
 
7162
- //# debugId=780DFCBFA225B76C64756E2164756E21
7162
+ //# debugId=ED70298A96914B8F64756E2164756E21
@@ -20,7 +20,7 @@ import {
20
20
  parseBoundedInt,
21
21
  processContext,
22
22
  requireConfirmation
23
- } from "./tool-e5a5hzvv.js";
23
+ } from "./tool-8971255k.js";
24
24
  import {
25
25
  __require
26
26
  } from "./tool-1yh8g550.js";
@@ -11573,7 +11573,7 @@ var resolveEntryPoint = (entryPoints, requested) => {
11573
11573
  var resolveBinding = async (target) => {
11574
11574
  const processKey = target.processKey.toLowerCase();
11575
11575
  const folderKey = target.folderKey.toLowerCase();
11576
- const { listVoiceEntryPoints } = await import("./cas-client-mq364h0j.js");
11576
+ const { listVoiceEntryPoints } = await import("./cas-client-z600yhye.js");
11577
11577
  const [epError, entryPoints] = await catchError(listVoiceEntryPoints(processKey, folderKey));
11578
11578
  if (epError) {
11579
11579
  await failFromError(epError);
@@ -11589,7 +11589,7 @@ var resolveBinding = async (target) => {
11589
11589
  var registerTrunksCommand = (program) => {
11590
11590
  const trunks = program.command("trunks").description("Inspect the SIP trunks (phone numbers) configured for conversational voice.");
11591
11591
  trunks.command("list").description("List the tenant's SIP trunks. Voice flows dial out from an outbound-enabled trunk's phone number (`inputs.from` on Create outgoing call); inbound-enabled trunks route incoming calls to a published process. Trunks are connected in Instance Management under Phone numbers.").option("--direction <direction>", "Only trunks enabled for this call direction: inbound or outbound (default: all trunks)", parseDirection).trackedAction(processContext, async (options) => {
11592
- const { listSipTrunks } = await import("./cas-client-mq364h0j.js");
11592
+ const { listSipTrunks } = await import("./cas-client-z600yhye.js");
11593
11593
  const [listError, trunks2] = await catchError(listSipTrunks(options.direction));
11594
11594
  if (listError) {
11595
11595
  await failFromError(listError);
@@ -11605,7 +11605,7 @@ var registerTrunksCommand = (program) => {
11605
11605
  const plan = planAssign(options);
11606
11606
  if (plan === null)
11607
11607
  return;
11608
- const { resolveSipTrunk, updateSipTrunkBinding } = await import("./cas-client-mq364h0j.js");
11608
+ const { resolveSipTrunk, updateSipTrunkBinding } = await import("./cas-client-z600yhye.js");
11609
11609
  const [trunkError, trunk] = await catchError(resolveSipTrunk(trunkArg));
11610
11610
  if (trunkError) {
11611
11611
  await failFromError(trunkError);
package/dist/tool.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-pvq2q8nz.js";
4
+ } from "./tool-y3h0vjrk.js";
5
5
  import"./tool-nkyhbf79.js";
6
- import"./tool-e5a5hzvv.js";
6
+ import"./tool-8971255k.js";
7
7
  import"./tool-mpvp5rqs.js";
8
8
  import"./tool-1yh8g550.js";
9
9
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/conversational-tool",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "description": "Handle conversations with deployed UiPath conversational processes.",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
@@ -17,5 +17,5 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
20
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
21
21
  }