@uipath/context-grounding-tool 1.202.0-preview.134 → 1.202.0-preview.136

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
@@ -3,7 +3,7 @@ import {
3
3
  Command,
4
4
  metadata,
5
5
  registerCommands
6
- } from "./tool-xznt84qh.js";
6
+ } from "./tool-3pw03tvv.js";
7
7
  import"./tool-1de529jm.js";
8
8
 
9
9
  // src/index.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
@@ -3114,7 +3114,7 @@ var jmespathSlot = singleton("JmespathCodec");
3114
3114
  async function loadOutputCodecsAsync(needed) {
3115
3115
  const loads = [];
3116
3116
  if (needed.yaml && yamlSlot.get() === undefined) {
3117
- loads.push(import("./js-yaml-b2jq67kn.js").then((mod) => {
3117
+ loads.push(import("./js-yaml-88tdqrtd.js").then((mod) => {
3118
3118
  yamlSlot.set(mod);
3119
3119
  }));
3120
3120
  }
@@ -7417,7 +7417,7 @@ function createCommandForwarder(executeCommand) {
7417
7417
  var package_default = {
7418
7418
  name: "@uipath/context-grounding-tool",
7419
7419
  license: "MIT",
7420
- version: "1.202.0-preview.134",
7420
+ version: "1.202.0-preview.136",
7421
7421
  description: "Tool for context grounding operations via the UiPath Python SDK",
7422
7422
  keywords: [
7423
7423
  "uipcli-tool",
@@ -7518,4 +7518,4 @@ var registerCommands = async (program2) => {
7518
7518
 
7519
7519
  export { Command, metadata, registerCommands };
7520
7520
 
7521
- //# debugId=41909BB2C61DE90A64756E2164756E21
7521
+ //# debugId=43C5C7D0F0C758B764756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-xznt84qh.js";
4
+ } from "./tool-3pw03tvv.js";
5
5
  import"./tool-1de529jm.js";
6
6
  export {
7
7
  metadata,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/context-grounding-tool",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.136",
5
5
  "description": "Tool for context grounding operations via the UiPath Python SDK",
6
6
  "keywords": [
7
7
  "uipcli-tool",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "registry": "https://registry.npmjs.org/"
30
30
  },
31
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
31
+ "gitHead": "f6270de2c7c04f4c43b2f5187b0c3d3c314c2610"
32
32
  }