@uipath/coder-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
@@ -4,7 +4,7 @@ import {
4
4
  metadata,
5
5
  registerCommands,
6
6
  setPreviewBuild
7
- } from "./tool-85mtvq6m.js";
7
+ } from "./tool-dqeks2t1.js";
8
8
  import"./tool-1de529jm.js";
9
9
 
10
10
  // 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
  }
@@ -4019,6 +4019,14 @@ var RETRY_HINTS = [
4019
4019
  "RetryAfter30Seconds",
4020
4020
  "RetryAfter60Seconds"
4021
4021
  ];
4022
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
4023
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
4024
+ function isCliErrorCode(value) {
4025
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
4026
+ }
4027
+ function isRetryHint(value) {
4028
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
4029
+ }
4022
4030
  var RESULTS = {
4023
4031
  Success: "Success",
4024
4032
  Failure: "Failure",
@@ -4830,8 +4838,6 @@ function emitInvocationRequest(name, success, properties) {
4830
4838
 
4831
4839
  // ../common/src/trackedAction.ts
4832
4840
  var pollSignalSlot = singleton("PollSignal");
4833
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
4834
- var retryHintValues = new Set(RETRY_HINTS);
4835
4841
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
4836
4842
  var processContext = {
4837
4843
  exit: (code) => {
@@ -4919,12 +4925,6 @@ function deriveCommandPath(cmd) {
4919
4925
  }
4920
4926
  return commandTelemetryName(parts);
4921
4927
  }
4922
- function isCliErrorCode(value) {
4923
- return typeof value === "string" && cliErrorCodeValues.has(value);
4924
- }
4925
- function isRetryHint(value) {
4926
- return typeof value === "string" && retryHintValues.has(value);
4927
- }
4928
4928
  function isErrorContext(value) {
4929
4929
  return value !== null && typeof value === "object";
4930
4930
  }
@@ -5306,7 +5306,7 @@ var factorySlot = singleton("PackagerFactoryProvider");
5306
5306
  var package_default = {
5307
5307
  name: "@uipath/coder-tool",
5308
5308
  license: "MIT",
5309
- version: "1.202.0-preview.134",
5309
+ version: "1.202.0-preview.137",
5310
5310
  description: "Interactive coding agent (Pi) with UiPath LLM Gateway and BYO provider support.",
5311
5311
  publishConfig: {
5312
5312
  registry: "https://npm.pkg.github.com/"
@@ -6858,4 +6858,4 @@ var registerCommands = async (program2) => {
6858
6858
 
6859
6859
  export { Command, setPreviewBuild, metadata, registerCommands };
6860
6860
 
6861
- //# debugId=9DD9C148C44A6E2564756E2164756E21
6861
+ //# debugId=55D4B3DE5C556CDF64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-85mtvq6m.js";
4
+ } from "./tool-dqeks2t1.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/coder-tool",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "description": "Interactive coding agent (Pi) with UiPath LLM Gateway and BYO provider support.",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
@@ -17,5 +17,5 @@
17
17
  "dependencies": {
18
18
  "@earendil-works/pi-coding-agent": "^0.80.6"
19
19
  },
20
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
20
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
21
21
  }