@uipath/codedagent-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.
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./tool-bd0jh9dt.js";
5
+ } from "./tool-4ykh9vka.js";
6
6
  import {
7
7
  Command
8
- } from "./tool-s19cqcj0.js";
8
+ } from "./tool-qybktkee.js";
9
9
  import"./tool-1de529jm.js";
10
10
 
11
11
  // src/index.ts
package/dist/init.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  COMMAND_RULES,
3
3
  codedAgentCommandPreflight,
4
4
  runUipathPythonCommand
5
- } from "./tool-s19cqcj0.js";
5
+ } from "./tool-qybktkee.js";
6
6
  import"./tool-1de529jm.js";
7
7
 
8
8
  // src/services/codedagent-init-service.ts
@@ -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
@@ -11,7 +11,7 @@ import {
11
11
  getFileSystem,
12
12
  processContext,
13
13
  trackShipSucceeded
14
- } from "./tool-s19cqcj0.js";
14
+ } from "./tool-qybktkee.js";
15
15
  import {
16
16
  __require
17
17
  } from "./tool-1de529jm.js";
@@ -19,7 +19,7 @@ import {
19
19
  var package_default = {
20
20
  name: "@uipath/codedagent-tool",
21
21
  license: "MIT",
22
- version: "1.202.0-preview.134",
22
+ version: "1.202.0-preview.137",
23
23
  description: "Build, run, deploy, and manage AI Agents.",
24
24
  keywords: [
25
25
  "cli-tool",
@@ -3208,4 +3208,4 @@ var registerCommands = async (program) => {
3208
3208
 
3209
3209
  export { metadata, registerCommands };
3210
3210
 
3211
- //# debugId=FFE144F0AB98834464756E2164756E21
3211
+ //# debugId=E64D67A8DCD36ADB64756E2164756E21
@@ -3105,7 +3105,7 @@ var jmespathSlot = singleton("JmespathCodec");
3105
3105
  async function loadOutputCodecsAsync(needed) {
3106
3106
  const loads = [];
3107
3107
  if (needed.yaml && yamlSlot.get() === undefined) {
3108
- loads.push(import("./js-yaml-b2jq67kn.js").then((mod) => {
3108
+ loads.push(import("./js-yaml-88tdqrtd.js").then((mod) => {
3109
3109
  yamlSlot.set(mod);
3110
3110
  }));
3111
3111
  }
@@ -4013,6 +4013,14 @@ var RETRY_HINTS = [
4013
4013
  "RetryAfter30Seconds",
4014
4014
  "RetryAfter60Seconds"
4015
4015
  ];
4016
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
4017
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
4018
+ function isCliErrorCode(value) {
4019
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
4020
+ }
4021
+ function isRetryHint(value) {
4022
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
4023
+ }
4016
4024
  var RESULTS = {
4017
4025
  Success: "Success",
4018
4026
  Failure: "Failure",
@@ -4783,8 +4791,6 @@ function emitInvocationRequest(name, success, properties) {
4783
4791
 
4784
4792
  // ../common/src/trackedAction.ts
4785
4793
  var pollSignalSlot = singleton("PollSignal");
4786
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
4787
- var retryHintValues = new Set(RETRY_HINTS);
4788
4794
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
4789
4795
  var processContext = {
4790
4796
  exit: (code) => {
@@ -4872,12 +4878,6 @@ function deriveCommandPath(cmd) {
4872
4878
  }
4873
4879
  return commandTelemetryName(parts);
4874
4880
  }
4875
- function isCliErrorCode(value) {
4876
- return typeof value === "string" && cliErrorCodeValues.has(value);
4877
- }
4878
- function isRetryHint(value) {
4879
- return typeof value === "string" && retryHintValues.has(value);
4880
- }
4881
4881
  function isErrorContext(value) {
4882
4882
  return value !== null && typeof value === "object";
4883
4883
  }
@@ -7523,4 +7523,4 @@ var codedAgentCommandPreflight = ({
7523
7523
 
7524
7524
  export { getFileSystem, catchError, extractErrorMessageSync, RESULTS, OutputFormatter, Command, processContext, trackShipSucceeded, runUipathPythonCommand, createExecuteCommand, createSetupCommand, WHITELISTED_COMMANDS, COMMAND_RULES, codedAgentCommandPreflight };
7525
7525
 
7526
- //# debugId=5AA8B2F233EFC85164756E2164756E21
7526
+ //# debugId=E7DB33646FB03DF264756E2164756E21
package/dist/tool.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-bd0jh9dt.js";
5
- import"./tool-s19cqcj0.js";
4
+ } from "./tool-4ykh9vka.js";
5
+ import"./tool-qybktkee.js";
6
6
  import"./tool-1de529jm.js";
7
7
  export {
8
8
  metadata,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/codedagent-tool",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "description": "Build, run, deploy, and manage AI Agents.",
6
6
  "keywords": [
7
7
  "cli-tool",
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
35
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
36
36
  }