@uipath/api-workflow-tool 1.202.0 → 1.203.0-preview.160

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.
@@ -1065,6 +1065,9 @@ class ZipService {
1065
1065
  });
1066
1066
  return zipData;
1067
1067
  }
1068
+ compressEntries(entries) {
1069
+ return zipSync(entries, { level: 6 });
1070
+ }
1068
1071
  }
1069
1072
  function isPluralForm(value) {
1070
1073
  return typeof value === "object" && value !== null && "other" in value;
@@ -2358,4 +2361,4 @@ var toolsFactoryRepository = _global[REGISTRY_KEY];
2358
2361
 
2359
2362
  export { Path, TemporaryStorageService, ZipService, I18nManager, translate, LogLevel, LogMessage, NugetConstants, ProjectTypes, TargetFramework, ToolErrorCodes, ToolResult, ensureContentOperateFile, NugetPackager, ProjectTool, toolsFactoryRepository };
2360
2363
 
2361
- //# debugId=46743138DD98262964756E2164756E21
2364
+ //# debugId=B304248572D8EF8064756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  registerPackagerFactories
3
- } from "./packager-tool-m6ddy2t4.js";
3
+ } from "./packager-tool-k9wheprx.js";
4
4
  import {
5
5
  FailureOutput,
6
6
  OutputFormatter,
@@ -19,7 +19,7 @@ import {
19
19
  processContext,
20
20
  registerPackageMetadataOptions,
21
21
  unsupportedSolutionProjectType
22
- } from "./packager-tool-928rptcq.js";
22
+ } from "./packager-tool-htyg4jck.js";
23
23
  import {
24
24
  yaml
25
25
  } from "./packager-tool-d3w0wn6k.js";
@@ -7153,8 +7153,9 @@ var require__2020 = __commonJS(function(exports, module) {
7153
7153
  // package.json
7154
7154
  var package_default = {
7155
7155
  name: "@uipath/api-workflow-tool",
7156
+ author: "UiPath",
7156
7157
  license: "SEE LICENSE IN LICENSE.txt",
7157
- version: "1.202.0",
7158
+ version: "1.203.0-preview.160",
7158
7159
  description: "Run UiPath API Workflows locally.",
7159
7160
  private: false,
7160
7161
  repository: {
@@ -7191,7 +7192,7 @@ var package_default = {
7191
7192
  ajv: "^8.18.0",
7192
7193
  "js-yaml": "^4.3.2",
7193
7194
  "@uipath/api-workflow-commons": "7.17.0",
7194
- "@uipath/api-workflow-executor": "12.26.1",
7195
+ "@uipath/api-workflow-executor": "12.27.0",
7195
7196
  "@uipath/auth": "workspace:*",
7196
7197
  "@uipath/common": "workspace:*",
7197
7198
  "@uipath/filesystem": "workspace:*",
@@ -7735,8 +7736,9 @@ class TextApiResponse {
7735
7736
  // ../integrationservice-sdk/package.json
7736
7737
  var package_default2 = {
7737
7738
  name: "@uipath/integrationservice-sdk",
7739
+ author: "UiPath",
7738
7740
  license: "SEE LICENSE IN LICENSE.txt",
7739
- version: "1.202.0",
7741
+ version: "1.203.0-preview.160",
7740
7742
  repository: {
7741
7743
  type: "git",
7742
7744
  url: "https://github.com/UiPath/cli.git",
@@ -13638,12 +13640,6 @@ function parseConfig(activity) {
13638
13640
 
13639
13641
  // src/services/registry-service.ts
13640
13642
  var HTTP_CONNECTOR_KEY = "uipath-uipath-http";
13641
- var ACTIVITY_EXCLUSIONS = [
13642
- (c) => c.connectorKey === "uipath-uipath-dataservice" && /_V3$/i.test(c.objectName ?? "")
13643
- ];
13644
- function isExcluded(config) {
13645
- return ACTIVITY_EXCLUSIONS.some((match) => match(config));
13646
- }
13647
13643
  function isHiddenParameter(p) {
13648
13644
  return p.design?.isHidden === true;
13649
13645
  }
@@ -13661,8 +13657,6 @@ async function searchActivities(keyword, limit = 50) {
13661
13657
  const config = parseConfig(activity);
13662
13658
  if (!config)
13663
13659
  continue;
13664
- if (isExcluded(config))
13665
- continue;
13666
13660
  const haystack = [
13667
13661
  activity.displayName,
13668
13662
  activity.description,
@@ -13694,8 +13688,6 @@ async function findActivityByGuid(activityTypeId) {
13694
13688
  const config = parseConfig(activity);
13695
13689
  if (!config)
13696
13690
  return null;
13697
- if (isExcluded(config))
13698
- return null;
13699
13691
  return { activity, config };
13700
13692
  }
13701
13693
  async function fetchIsEnrichment(args) {
@@ -14378,7 +14370,7 @@ Subcommands:
14378
14370
  // src/commands/packager-shared.ts
14379
14371
  async function createPackager() {
14380
14372
  registerPackagerFactories();
14381
- const { createNodeProjectPackager } = await import("./node-wrbrw7qd.js");
14373
+ const { createNodeProjectPackager } = await import("./node-68q3z5v4.js");
14382
14374
  return await createNodeProjectPackager({
14383
14375
  logHandler: logger.handleLog
14384
14376
  });
@@ -14401,7 +14393,7 @@ async function setupProject(packager, projectPath) {
14401
14393
  return packager.setupAsync(absPath);
14402
14394
  }
14403
14395
  async function buildBaseOptions() {
14404
- const { ProjectPackOptions } = await import("./index-jqd5fm0v.js");
14396
+ const { ProjectPackOptions } = await import("./index-w15ym591.js");
14405
14397
  const sdkLogLevelMap = {
14406
14398
  [0 /* DEBUG */]: "Debug" /* Debug */,
14407
14399
  [1 /* INFO */]: "Information" /* Info */,
@@ -14696,8 +14688,9 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
14696
14688
  // ../solution-sdk/package.json
14697
14689
  var package_default3 = {
14698
14690
  name: "@uipath/solution-sdk",
14691
+ author: "UiPath",
14699
14692
  license: "SEE LICENSE IN LICENSE.txt",
14700
- version: "1.202.0",
14693
+ version: "1.203.0-preview.160",
14701
14694
  repository: {
14702
14695
  type: "git",
14703
14696
  url: "https://github.com/UiPath/cli.git",
@@ -14736,7 +14729,7 @@ var package_default3 = {
14736
14729
  ],
14737
14730
  private: false,
14738
14731
  scripts: {
14739
- build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
14732
+ build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
14740
14733
  generate: "bun run src/scripts/generate-sdk.ts",
14741
14734
  lint: "biome check .",
14742
14735
  test: "vitest run",
@@ -14748,7 +14741,7 @@ var package_default3 = {
14748
14741
  "@uipath/common": "workspace:*",
14749
14742
  "@uipath/filesystem": "workspace:*",
14750
14743
  "@uipath/orchestrator-sdk": "workspace:*",
14751
- "@uipath/resource-builder-sdk": "^2025.11.0-alpha4202-3459",
14744
+ "@uipath/resource-builder-sdk": "2025.11.0-alpha5891-4020",
14752
14745
  "@uipath/solutionpackager-tool-core": "workspace:*",
14753
14746
  "@uipath/studioweb-sdk": "workspace:*",
14754
14747
  "@types/node": "^25.5.2",
@@ -16436,9 +16429,25 @@ var ACTIVITY_REQUIRED_KEYS = {
16436
16429
  };
16437
16430
  var VALID_EXPRESSION_LANGUAGES = ["javascript"];
16438
16431
  var VALID_EVALUATE_MODES = ["strict"];
16439
- var ajv = new import__2020.default({ allErrors: true, strict: false });
16440
- var validate = ajv.compile(apiwf_schema_default);
16441
- var validateEssentialConfig = ajv.compile(essential_configuration_schema_default);
16432
+ var schemaValidators;
16433
+ function compiledSchemaValidators() {
16434
+ if (schemaValidators) {
16435
+ return schemaValidators;
16436
+ }
16437
+ const ajv = new import__2020.default({ allErrors: true, strict: false });
16438
+ const [error, compiled] = catchError(() => ({
16439
+ workflow: ajv.compile(apiwf_schema_default),
16440
+ essentialConfig: ajv.compile(essential_configuration_schema_default)
16441
+ }));
16442
+ if (error) {
16443
+ if (error instanceof EvalError) {
16444
+ throw new Error("Validating an API Workflow compiles its JSON schema into generated code, and this host's Content Security Policy does not allow that ('unsafe-eval'). Run `uip api-workflow validate` from the desktop CLI.", { cause: error });
16445
+ }
16446
+ throw error;
16447
+ }
16448
+ schemaValidators = compiled;
16449
+ return compiled;
16450
+ }
16442
16451
  function formatAjvError(err) {
16443
16452
  switch (err.keyword) {
16444
16453
  case "additionalProperties":
@@ -16735,9 +16744,10 @@ function validateConnectorConfiguration(task, taskName, taskPath, issues) {
16735
16744
  });
16736
16745
  return;
16737
16746
  }
16738
- const valid = validateEssentialConfig(essential);
16747
+ const { essentialConfig } = compiledSchemaValidators();
16748
+ const valid = essentialConfig(essential);
16739
16749
  if (!valid) {
16740
- for (const err of validateEssentialConfig.errors ?? []) {
16750
+ for (const err of essentialConfig.errors ?? []) {
16741
16751
  issues.push({
16742
16752
  path: `${taskPath}/metadata/configuration/essentialConfiguration${err.instancePath}`,
16743
16753
  message: `Connector task '${taskName}': essentialConfiguration ${formatAjvError(err)}`,
@@ -16830,9 +16840,10 @@ Validating: ${absolutePath}
16830
16840
  ]
16831
16841
  };
16832
16842
  }
16833
- const valid = validate(parsed);
16843
+ const { workflow } = compiledSchemaValidators();
16844
+ const valid = workflow(parsed);
16834
16845
  if (!valid) {
16835
- issues.push(...ajvErrorsToValidationIssues(validate.errors));
16846
+ issues.push(...ajvErrorsToValidationIssues(workflow.errors));
16836
16847
  }
16837
16848
  issues.push(...semanticValidation(parsed));
16838
16849
  return {
@@ -16894,4 +16905,4 @@ var registerCommands = async (program) => {
16894
16905
 
16895
16906
  export { metadata, registerCommands };
16896
16907
 
16897
- //# debugId=235246AD5859D98E64756E2164756E21
16908
+ //# debugId=7D1B041D9433506364756E2164756E21