@uipath/api-workflow-tool 1.202.0-preview.161 → 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-ymkv7w9a.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-preview.161",
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-preview.161",
7741
+ version: "1.203.0-preview.160",
7740
7742
  repository: {
7741
7743
  type: "git",
7742
7744
  url: "https://github.com/UiPath/cli.git",
@@ -14368,7 +14370,7 @@ Subcommands:
14368
14370
  // src/commands/packager-shared.ts
14369
14371
  async function createPackager() {
14370
14372
  registerPackagerFactories();
14371
- const { createNodeProjectPackager } = await import("./node-4w1hc7w8.js");
14373
+ const { createNodeProjectPackager } = await import("./node-68q3z5v4.js");
14372
14374
  return await createNodeProjectPackager({
14373
14375
  logHandler: logger.handleLog
14374
14376
  });
@@ -14391,7 +14393,7 @@ async function setupProject(packager, projectPath) {
14391
14393
  return packager.setupAsync(absPath);
14392
14394
  }
14393
14395
  async function buildBaseOptions() {
14394
- const { ProjectPackOptions } = await import("./index-4j2bwfb2.js");
14396
+ const { ProjectPackOptions } = await import("./index-w15ym591.js");
14395
14397
  const sdkLogLevelMap = {
14396
14398
  [0 /* DEBUG */]: "Debug" /* Debug */,
14397
14399
  [1 /* INFO */]: "Information" /* Info */,
@@ -14686,8 +14688,9 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
14686
14688
  // ../solution-sdk/package.json
14687
14689
  var package_default3 = {
14688
14690
  name: "@uipath/solution-sdk",
14691
+ author: "UiPath",
14689
14692
  license: "SEE LICENSE IN LICENSE.txt",
14690
- version: "1.202.0-preview.161",
14693
+ version: "1.203.0-preview.160",
14691
14694
  repository: {
14692
14695
  type: "git",
14693
14696
  url: "https://github.com/UiPath/cli.git",
@@ -14726,7 +14729,7 @@ var package_default3 = {
14726
14729
  ],
14727
14730
  private: false,
14728
14731
  scripts: {
14729
- 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",
14730
14733
  generate: "bun run src/scripts/generate-sdk.ts",
14731
14734
  lint: "biome check .",
14732
14735
  test: "vitest run",
@@ -14738,7 +14741,7 @@ var package_default3 = {
14738
14741
  "@uipath/common": "workspace:*",
14739
14742
  "@uipath/filesystem": "workspace:*",
14740
14743
  "@uipath/orchestrator-sdk": "workspace:*",
14741
- "@uipath/resource-builder-sdk": "^2025.11.0-alpha4202-3459",
14744
+ "@uipath/resource-builder-sdk": "2025.11.0-alpha5891-4020",
14742
14745
  "@uipath/solutionpackager-tool-core": "workspace:*",
14743
14746
  "@uipath/studioweb-sdk": "workspace:*",
14744
14747
  "@types/node": "^25.5.2",
@@ -16426,9 +16429,25 @@ var ACTIVITY_REQUIRED_KEYS = {
16426
16429
  };
16427
16430
  var VALID_EXPRESSION_LANGUAGES = ["javascript"];
16428
16431
  var VALID_EVALUATE_MODES = ["strict"];
16429
- var ajv = new import__2020.default({ allErrors: true, strict: false });
16430
- var validate = ajv.compile(apiwf_schema_default);
16431
- 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
+ }
16432
16451
  function formatAjvError(err) {
16433
16452
  switch (err.keyword) {
16434
16453
  case "additionalProperties":
@@ -16725,9 +16744,10 @@ function validateConnectorConfiguration(task, taskName, taskPath, issues) {
16725
16744
  });
16726
16745
  return;
16727
16746
  }
16728
- const valid = validateEssentialConfig(essential);
16747
+ const { essentialConfig } = compiledSchemaValidators();
16748
+ const valid = essentialConfig(essential);
16729
16749
  if (!valid) {
16730
- for (const err of validateEssentialConfig.errors ?? []) {
16750
+ for (const err of essentialConfig.errors ?? []) {
16731
16751
  issues.push({
16732
16752
  path: `${taskPath}/metadata/configuration/essentialConfiguration${err.instancePath}`,
16733
16753
  message: `Connector task '${taskName}': essentialConfiguration ${formatAjvError(err)}`,
@@ -16820,9 +16840,10 @@ Validating: ${absolutePath}
16820
16840
  ]
16821
16841
  };
16822
16842
  }
16823
- const valid = validate(parsed);
16843
+ const { workflow } = compiledSchemaValidators();
16844
+ const valid = workflow(parsed);
16824
16845
  if (!valid) {
16825
- issues.push(...ajvErrorsToValidationIssues(validate.errors));
16846
+ issues.push(...ajvErrorsToValidationIssues(workflow.errors));
16826
16847
  }
16827
16848
  issues.push(...semanticValidation(parsed));
16828
16849
  return {
@@ -16884,4 +16905,4 @@ var registerCommands = async (program) => {
16884
16905
 
16885
16906
  export { metadata, registerCommands };
16886
16907
 
16887
- //# debugId=E3EE1C066826BD4164756E2164756E21
16908
+ //# debugId=7D1B041D9433506364756E2164756E21