@uipath/api-workflow-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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkflowRunService
3
- } from "./packager-tool-9kaazy87.js";
3
+ } from "./packager-tool-1sq52xth.js";
4
4
  import"./packager-tool-1de529jm.js";
5
5
  // ../executor/project-executor/src/models/run-status.ts
6
6
  var TERMINAL_RUN_STATUSES = [
@@ -3307,16 +3307,21 @@ function requireLoader() {
3307
3307
  state.result += _result;
3308
3308
  }
3309
3309
  }
3310
+ function chargeMergeWork(state) {
3311
+ state.totalMergeKeys++;
3312
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
3313
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
3314
+ }
3315
+ }
3310
3316
  function mergeMappings(state, destination, source, overridableKeys) {
3311
3317
  if (!common2.isObject(source)) {
3312
3318
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
3313
3319
  }
3320
+ chargeMergeWork(state);
3314
3321
  const sourceKeys = Object.keys(source);
3315
3322
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
3316
3323
  const key = sourceKeys[index];
3317
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
3318
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
3319
- }
3324
+ chargeMergeWork(state);
3320
3325
  if (!_hasOwnProperty.call(destination, key)) {
3321
3326
  setProperty(destination, key, source[key]);
3322
3327
  overridableKeys[key] = true;
@@ -3344,6 +3349,9 @@ function requireLoader() {
3344
3349
  }
3345
3350
  if (keyTag === "tag:yaml.org,2002:merge") {
3346
3351
  if (Array.isArray(valueNode)) {
3352
+ if (valueNode.length > 100) {
3353
+ throwError(state, "abnormal merge sequence size");
3354
+ }
3347
3355
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
3348
3356
  mergeMappings(state, _result, valueNode[index], overridableKeys);
3349
3357
  }
@@ -11179,6 +11187,14 @@ var RETRY_HINTS = [
11179
11187
  "RetryAfter30Seconds",
11180
11188
  "RetryAfter60Seconds"
11181
11189
  ];
11190
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
11191
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
11192
+ function isCliErrorCode(value) {
11193
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
11194
+ }
11195
+ function isRetryHint(value) {
11196
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
11197
+ }
11182
11198
  var RESULTS = {
11183
11199
  Success: "Success",
11184
11200
  Failure: "Failure",
@@ -11970,8 +11986,6 @@ function emitInvocationRequest(name, success, properties) {
11970
11986
  }
11971
11987
  }
11972
11988
  var pollSignalSlot = singleton("PollSignal");
11973
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
11974
- var retryHintValues = new Set(RETRY_HINTS);
11975
11989
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
11976
11990
  var TELEMETRY_ARG_VALUE_WITHHELD = "<provided>";
11977
11991
  var TELEMETRY_ARG_VALUE_DEFAULTED = "<default>";
@@ -12050,12 +12064,6 @@ function deriveCommandPath(cmd) {
12050
12064
  }
12051
12065
  return commandTelemetryName(parts);
12052
12066
  }
12053
- function isCliErrorCode(value) {
12054
- return typeof value === "string" && cliErrorCodeValues.has(value);
12055
- }
12056
- function isRetryHint(value) {
12057
- return typeof value === "string" && retryHintValues.has(value);
12058
- }
12059
12067
  function isErrorContext(value) {
12060
12068
  return value !== null && typeof value === "object";
12061
12069
  }
@@ -12831,7 +12839,7 @@ function addSdkUserAgentHeader(headers, userAgent) {
12831
12839
  var package_default = {
12832
12840
  name: "@uipath/project-packager",
12833
12841
  license: "MIT",
12834
- version: "1.202.0-preview.134",
12842
+ version: "1.202.0-preview.137",
12835
12843
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
12836
12844
  type: "module",
12837
12845
  main: "./dist/index.js",
@@ -12893,11 +12901,11 @@ var package_default = {
12893
12901
  "@uipath/packager-tool-functions": "workspace:*",
12894
12902
  "@uipath/packager-tool-webapp": "workspace:*",
12895
12903
  "@uipath/packager-tool-workflowcompiler": "workspace:*",
12896
- "@vitest/coverage-v8": "^4.1.6",
12904
+ "@vitest/coverage-v8": "^4.1.11",
12897
12905
  jsdom: "^30.0.1",
12898
12906
  typescript: "^7.0.2",
12899
12907
  "vite-tsconfig-paths": "^6.1.1",
12900
- vitest: "^4.1.6"
12908
+ vitest: "^4.1.11"
12901
12909
  }
12902
12910
  };
12903
12911
 
@@ -14077,4 +14085,4 @@ export {
14077
14085
  signNupkgsAsync
14078
14086
  };
14079
14087
 
14080
- //# debugId=06C69B686283624B64756E2164756E21
14088
+ //# debugId=088455C31F022BBE64756E2164756E21
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./packager-tool-829gd8ec.js";
5
+ } from "./packager-tool-1hy4sy1h.js";
6
6
  import"./packager-tool-etwnccc1.js";
7
7
  import"./packager-tool-gbz5mg04.js";
8
8
  import {
9
9
  Command
10
- } from "./packager-tool-9kaazy87.js";
11
- import"./packager-tool-t01cjyjh.js";
10
+ } from "./packager-tool-1sq52xth.js";
11
+ import"./packager-tool-d3w0wn6k.js";
12
12
  import"./packager-tool-1de529jm.js";
13
13
 
14
14
  // src/index.ts
@@ -14,7 +14,7 @@ import {
14
14
  safeLoadAll,
15
15
  types,
16
16
  yaml
17
- } from "./packager-tool-t01cjyjh.js";
17
+ } from "./packager-tool-d3w0wn6k.js";
18
18
  import"./packager-tool-1de529jm.js";
19
19
  export {
20
20
  CORE_SCHEMA,
@@ -4187,16 +4187,21 @@ function requireLoader() {
4187
4187
  state.result += _result;
4188
4188
  }
4189
4189
  }
4190
+ function chargeMergeWork(state) {
4191
+ state.totalMergeKeys++;
4192
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
4193
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
4194
+ }
4195
+ }
4190
4196
  function mergeMappings(state, destination, source, overridableKeys) {
4191
4197
  if (!common2.isObject(source)) {
4192
4198
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
4193
4199
  }
4200
+ chargeMergeWork(state);
4194
4201
  const sourceKeys = Object.keys(source);
4195
4202
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
4196
4203
  const key = sourceKeys[index];
4197
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
4198
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
4199
- }
4204
+ chargeMergeWork(state);
4200
4205
  if (!_hasOwnProperty.call(destination, key)) {
4201
4206
  setProperty(destination, key, source[key]);
4202
4207
  overridableKeys[key] = true;
@@ -4224,6 +4229,9 @@ function requireLoader() {
4224
4229
  }
4225
4230
  if (keyTag === "tag:yaml.org,2002:merge") {
4226
4231
  if (Array.isArray(valueNode)) {
4232
+ if (valueNode.length > 100) {
4233
+ throwError(state, "abnormal merge sequence size");
4234
+ }
4227
4235
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
4228
4236
  mergeMappings(state, _result, valueNode[index], overridableKeys);
4229
4237
  }
@@ -12083,6 +12091,14 @@ var RETRY_HINTS = [
12083
12091
  "RetryAfter30Seconds",
12084
12092
  "RetryAfter60Seconds"
12085
12093
  ];
12094
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
12095
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
12096
+ function isCliErrorCode(value) {
12097
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
12098
+ }
12099
+ function isRetryHint(value) {
12100
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
12101
+ }
12086
12102
  var RESULTS = {
12087
12103
  Success: "Success",
12088
12104
  Failure: "Failure",
@@ -12874,8 +12890,6 @@ function emitInvocationRequest(name, success, properties) {
12874
12890
  }
12875
12891
  }
12876
12892
  var pollSignalSlot = singleton("PollSignal");
12877
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
12878
- var retryHintValues = new Set(RETRY_HINTS);
12879
12893
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
12880
12894
  var TELEMETRY_ARG_VALUE_WITHHELD = "<provided>";
12881
12895
  var TELEMETRY_ARG_VALUE_DEFAULTED = "<default>";
@@ -12954,12 +12968,6 @@ function deriveCommandPath(cmd) {
12954
12968
  }
12955
12969
  return commandTelemetryName(parts);
12956
12970
  }
12957
- function isCliErrorCode(value) {
12958
- return typeof value === "string" && cliErrorCodeValues.has(value);
12959
- }
12960
- function isRetryHint(value) {
12961
- return typeof value === "string" && retryHintValues.has(value);
12962
- }
12963
12971
  function isErrorContext(value) {
12964
12972
  return value !== null && typeof value === "object";
12965
12973
  }
@@ -14646,7 +14654,7 @@ function addSdkUserAgentHeader(headers, userAgent) {
14646
14654
  var package_default = {
14647
14655
  name: "@uipath/project-packager",
14648
14656
  license: "MIT",
14649
- version: "1.202.0-preview.134",
14657
+ version: "1.202.0-preview.137",
14650
14658
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
14651
14659
  type: "module",
14652
14660
  main: "./dist/index.js",
@@ -14708,11 +14716,11 @@ var package_default = {
14708
14716
  "@uipath/packager-tool-functions": "workspace:*",
14709
14717
  "@uipath/packager-tool-webapp": "workspace:*",
14710
14718
  "@uipath/packager-tool-workflowcompiler": "workspace:*",
14711
- "@vitest/coverage-v8": "^4.1.6",
14719
+ "@vitest/coverage-v8": "^4.1.11",
14712
14720
  jsdom: "^30.0.1",
14713
14721
  typescript: "^7.0.2",
14714
14722
  "vite-tsconfig-paths": "^6.1.1",
14715
- vitest: "^4.1.6"
14723
+ vitest: "^4.1.11"
14716
14724
  }
14717
14725
  };
14718
14726
  var HEADER_TENANT_ID = "X-UIPATH-TenantId";
@@ -15097,4 +15105,4 @@ export {
15097
15105
  signNupkgsAsync
15098
15106
  };
15099
15107
 
15100
- //# debugId=890A7DC75425FC9164756E2164756E21
15108
+ //# debugId=FD447E1EBDBBF9BA64756E2164756E21
@@ -19,10 +19,10 @@ import {
19
19
  processContext,
20
20
  registerPackageMetadataOptions,
21
21
  unsupportedSolutionProjectType
22
- } from "./packager-tool-9kaazy87.js";
22
+ } from "./packager-tool-1sq52xth.js";
23
23
  import {
24
24
  yaml
25
- } from "./packager-tool-t01cjyjh.js";
25
+ } from "./packager-tool-d3w0wn6k.js";
26
26
  import {
27
27
  __commonJS,
28
28
  __require,
@@ -7154,7 +7154,7 @@ var require__2020 = __commonJS(function(exports, module) {
7154
7154
  var package_default = {
7155
7155
  name: "@uipath/api-workflow-tool",
7156
7156
  license: "MIT",
7157
- version: "1.202.0-preview.134",
7157
+ version: "1.202.0-preview.137",
7158
7158
  description: "Run UiPath API Workflows locally.",
7159
7159
  private: false,
7160
7160
  repository: {
@@ -7189,7 +7189,7 @@ var package_default = {
7189
7189
  devDependencies: {
7190
7190
  "@types/node": "^25.5.2",
7191
7191
  ajv: "^8.18.0",
7192
- "js-yaml": "^4.3.1",
7192
+ "js-yaml": "^4.3.2",
7193
7193
  "@uipath/api-workflow-commons": "7.17.0",
7194
7194
  "@uipath/api-workflow-executor": "12.26.1",
7195
7195
  "@uipath/auth": "workspace:*",
@@ -7736,7 +7736,7 @@ class TextApiResponse {
7736
7736
  var package_default2 = {
7737
7737
  name: "@uipath/integrationservice-sdk",
7738
7738
  license: "MIT",
7739
- version: "1.202.0-preview.134",
7739
+ version: "1.202.0-preview.137",
7740
7740
  repository: {
7741
7741
  type: "git",
7742
7742
  url: "https://github.com/UiPath/cli.git",
@@ -14378,7 +14378,7 @@ Subcommands:
14378
14378
  // src/commands/packager-shared.ts
14379
14379
  async function createPackager() {
14380
14380
  registerPackagerFactories();
14381
- const { createNodeProjectPackager } = await import("./node-t33nhc1w.js");
14381
+ const { createNodeProjectPackager } = await import("./node-6zx0w0t1.js");
14382
14382
  return await createNodeProjectPackager({
14383
14383
  logHandler: logger.handleLog
14384
14384
  });
@@ -14401,7 +14401,7 @@ async function setupProject(packager, projectPath) {
14401
14401
  return packager.setupAsync(absPath);
14402
14402
  }
14403
14403
  async function buildBaseOptions() {
14404
- const { ProjectPackOptions } = await import("./index-paecpwre.js");
14404
+ const { ProjectPackOptions } = await import("./index-4g7y9vv6.js");
14405
14405
  const sdkLogLevelMap = {
14406
14406
  [0 /* DEBUG */]: "Debug" /* Debug */,
14407
14407
  [1 /* INFO */]: "Information" /* Info */,
@@ -14697,7 +14697,7 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
14697
14697
  var package_default3 = {
14698
14698
  name: "@uipath/solution-sdk",
14699
14699
  license: "MIT",
14700
- version: "1.202.0-preview.134",
14700
+ version: "1.202.0-preview.137",
14701
14701
  repository: {
14702
14702
  type: "git",
14703
14703
  url: "https://github.com/UiPath/cli.git",
@@ -16894,4 +16894,4 @@ var registerCommands = async (program) => {
16894
16894
 
16895
16895
  export { metadata, registerCommands };
16896
16896
 
16897
- //# debugId=DCC866135D6A134164756E2164756E21
16897
+ //# debugId=4A5F6064A1B9DC9764756E2164756E21
@@ -28568,7 +28568,7 @@ var jmespathSlot = singleton("JmespathCodec");
28568
28568
  async function loadOutputCodecsAsync(needed) {
28569
28569
  const loads = [];
28570
28570
  if (needed.yaml && yamlSlot.get() === undefined) {
28571
- loads.push(import("./js-yaml-gx54jnbd.js").then((mod) => {
28571
+ loads.push(import("./js-yaml-rtdrjz2v.js").then((mod) => {
28572
28572
  yamlSlot.set(mod);
28573
28573
  }));
28574
28574
  }
@@ -29473,6 +29473,14 @@ var RETRY_HINTS = [
29473
29473
  "RetryAfter30Seconds",
29474
29474
  "RetryAfter60Seconds"
29475
29475
  ];
29476
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
29477
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
29478
+ function isCliErrorCode(value) {
29479
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
29480
+ }
29481
+ function isRetryHint(value) {
29482
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
29483
+ }
29476
29484
  var RESULTS = {
29477
29485
  Success: "Success",
29478
29486
  Failure: "Failure",
@@ -30293,8 +30301,6 @@ function emitInvocationRequest(name, success, properties) {
30293
30301
 
30294
30302
  // ../common/src/trackedAction.ts
30295
30303
  var pollSignalSlot = singleton("PollSignal");
30296
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
30297
- var retryHintValues = new Set(RETRY_HINTS);
30298
30304
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
30299
30305
  var processContext = {
30300
30306
  exit: (code) => {
@@ -30382,12 +30388,6 @@ function deriveCommandPath(cmd) {
30382
30388
  }
30383
30389
  return commandTelemetryName(parts);
30384
30390
  }
30385
- function isCliErrorCode(value) {
30386
- return typeof value === "string" && cliErrorCodeValues.has(value);
30387
- }
30388
- function isRetryHint(value) {
30389
- return typeof value === "string" && retryHintValues.has(value);
30390
- }
30391
30391
  function isErrorContext(value) {
30392
30392
  return value !== null && typeof value === "object";
30393
30393
  }
@@ -32870,4 +32870,4 @@ Running workflow: ${fs2.path.basename(resolvedPath)}`);
32870
32870
 
32871
32871
  export { getFileSystem, catchError, logger, RESULTS, SuccessOutput, FailureOutput, OutputFormatter, Command, processContext, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, getLoginStatusAsync, getAuthContext, WorkflowRunService };
32872
32872
 
32873
- //# debugId=FD6171EAAF1EEA4B64756E2164756E21
32873
+ //# debugId=D5B8AEC617871E4364756E2164756E21
@@ -1332,16 +1332,21 @@ function requireLoader() {
1332
1332
  state.result += _result;
1333
1333
  }
1334
1334
  }
1335
+ function chargeMergeWork(state) {
1336
+ state.totalMergeKeys++;
1337
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1338
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1339
+ }
1340
+ }
1335
1341
  function mergeMappings(state, destination, source, overridableKeys) {
1336
1342
  if (!common2.isObject(source)) {
1337
1343
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1338
1344
  }
1345
+ chargeMergeWork(state);
1339
1346
  const sourceKeys = Object.keys(source);
1340
1347
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
1341
1348
  const key = sourceKeys[index];
1342
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1343
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1344
- }
1349
+ chargeMergeWork(state);
1345
1350
  if (!_hasOwnProperty.call(destination, key)) {
1346
1351
  setProperty(destination, key, source[key]);
1347
1352
  overridableKeys[key] = true;
@@ -1369,6 +1374,9 @@ function requireLoader() {
1369
1374
  }
1370
1375
  if (keyTag === "tag:yaml.org,2002:merge") {
1371
1376
  if (Array.isArray(valueNode)) {
1377
+ if (valueNode.length > 100) {
1378
+ throwError(state, "abnormal merge sequence size");
1379
+ }
1372
1380
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
1373
1381
  mergeMappings(state, _result, valueNode[index], overridableKeys);
1374
1382
  }
@@ -3124,4 +3132,4 @@ var {
3124
3132
  } = yaml;
3125
3133
  export { yaml, Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump };
3126
3134
 
3127
- //# debugId=7AE2410D77C73ADF64756E2164756E21
3135
+ //# debugId=87AF69663A6159EB64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-829gd8ec.js";
4
+ } from "./packager-tool-1hy4sy1h.js";
5
5
  import"./packager-tool-etwnccc1.js";
6
6
  import"./packager-tool-gbz5mg04.js";
7
- import"./packager-tool-9kaazy87.js";
8
- import"./packager-tool-t01cjyjh.js";
7
+ import"./packager-tool-1sq52xth.js";
8
+ import"./packager-tool-d3w0wn6k.js";
9
9
  import"./packager-tool-1de529jm.js";
10
10
  export {
11
11
  metadata,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/api-workflow-tool",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "description": "Run UiPath API Workflows locally.",
6
6
  "private": false,
7
7
  "repository": {
@@ -25,5 +25,5 @@
25
25
  "files": [
26
26
  "dist"
27
27
  ],
28
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
28
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
29
29
  }