@uipath/rules-tool 1.206.0-preview.312 → 1.206.0-preview.323

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.
Files changed (23) hide show
  1. package/dist/{business-rules-zfzwr08c.js → business-rules-07pq6ba3.js} +4 -4
  2. package/dist/{first-party-service-xybnzzaz.js → first-party-service-s9ba3n8d.js} +1 -1
  3. package/dist/{index-7105pjnn.js → index-7fhdbe0q.js} +4 -4
  4. package/dist/{index-c9z3zjpg.js → index-dkd149xj.js} +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/{rule-catalog-drpaxvwg.js → rule-catalog-tfv47ncn.js} +6 -6
  7. package/dist/{rules-command-error-2x1vm0wt.js → rules-command-error-6kz000f6.js} +2 -2
  8. package/dist/{rules-debug-service-402prnwx.js → rules-debug-service-8503259e.js} +7 -7
  9. package/dist/{rules-init-service-tz95ezcn.js → rules-init-service-4ra8ettp.js} +6 -6
  10. package/dist/{rules-refresh-service-x3gfnfqt.js → rules-refresh-service-6t8nh920.js} +3 -3
  11. package/dist/{rules-validate-service-e47hgykv.js → rules-validate-service-prv20v19.js} +3 -3
  12. package/dist/{solution-definition-helper-tyqk2mb3.js → solution-definition-helper-ff9v1zts.js} +1 -1
  13. package/dist/{tool-bvzdfw28.js → tool-27a7yxxq.js} +6 -6
  14. package/dist/{tool-jzdt6z77.js → tool-5reen5es.js} +1 -1
  15. package/dist/{tool-b475et36.js → tool-b32fz6s8.js} +2 -2
  16. package/dist/{tool-syavphgt.js → tool-e5jxym27.js} +26 -6
  17. package/dist/{tool-3755q59j.js → tool-khrsnf6g.js} +48 -6
  18. package/dist/{tool-sjp6fvze.js → tool-kqj245b2.js} +2 -2
  19. package/dist/{tool-v0n0z37s.js → tool-qevn3m4g.js} +3 -3
  20. package/dist/{tool-0tbve332.js → tool-qhmn26ew.js} +1 -1
  21. package/dist/{tool-pg61e8zk.js → tool-zmqdwaye.js} +22 -22
  22. package/dist/tool.js +2 -2
  23. package/package.json +2 -2
@@ -7,10 +7,10 @@ import {
7
7
  formatRule2,
8
8
  formatRuleDetail2,
9
9
  formatVersion2
10
- } from "./tool-sjp6fvze.js";
11
- import"./tool-3755q59j.js";
12
- import"./tool-jzdt6z77.js";
13
- import"./tool-syavphgt.js";
10
+ } from "./tool-kqj245b2.js";
11
+ import"./tool-khrsnf6g.js";
12
+ import"./tool-5reen5es.js";
13
+ import"./tool-e5jxym27.js";
14
14
  export {
15
15
  assertOneFolderOption2 as assertOneFolderOption,
16
16
  createRulesApi2 as createRulesApi,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FirstPartyServiceApi2
3
- } from "./tool-bvzdfw28.js";
3
+ } from "./tool-27a7yxxq.js";
4
4
  export {
5
5
  FirstPartyServiceApi2 as FirstPartyServiceApi
6
6
  };
@@ -7,10 +7,10 @@ import {
7
7
  exportResourceDefinitionAsync2,
8
8
  ResourceExportError2,
9
9
  readSpecEntryPoints2
10
- } from "./tool-bvzdfw28.js";
11
- import"./tool-0tbve332.js";
12
- import"./tool-3755q59j.js";
13
- import"./tool-syavphgt.js";
10
+ } from "./tool-27a7yxxq.js";
11
+ import"./tool-qhmn26ew.js";
12
+ import"./tool-khrsnf6g.js";
13
+ import"./tool-e5jxym27.js";
14
14
  export {
15
15
  ResourceExportError2 as ResourceExportError,
16
16
  addProjectArtifactsToSolutionAsync2 as addProjectArtifactsToSolutionAsync,
@@ -8,7 +8,7 @@ import {
8
8
  JsonSerializerFactory2,
9
9
  JsonSerializerProxy2,
10
10
  StreamSerializer2
11
- } from "./tool-bvzdfw28.js";
11
+ } from "./tool-27a7yxxq.js";
12
12
  export {
13
13
  CAMEL_CASE_ENUM_PROPERTIES2 as CAMEL_CASE_ENUM_PROPERTIES,
14
14
  JsonSerializer2 as JsonSerializer,
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Command
4
- } from "./tool-syavphgt.js";
4
+ } from "./tool-e5jxym27.js";
5
5
  import {
6
6
  metadata2,
7
7
  registerCommands2
8
- } from "./tool-pg61e8zk.js";
8
+ } from "./tool-zmqdwaye.js";
9
9
 
10
10
  // src/index.ts
11
11
  var program = new Command;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catchError
3
- } from "./tool-syavphgt.js";
4
- import"./tool-3755q59j.js";
3
+ } from "./tool-e5jxym27.js";
4
+ import"./tool-khrsnf6g.js";
5
5
  import {
6
6
  getSolutionAuthContext,
7
7
  createResourceBuilderServices2,
@@ -11,15 +11,15 @@ import {
11
11
  exportResourceDefinitionAsync2,
12
12
  ResourceExportError2,
13
13
  readSpecEntryPoints2
14
- } from "./tool-bvzdfw28.js";
14
+ } from "./tool-27a7yxxq.js";
15
15
  import {
16
16
  RulesCommandError2
17
- } from "./tool-jzdt6z77.js";
17
+ } from "./tool-5reen5es.js";
18
18
  import {
19
19
  createRulesApi2,
20
20
  findRuleByName2
21
- } from "./tool-sjp6fvze.js";
22
- import"./tool-0tbve332.js";
21
+ } from "./tool-kqj245b2.js";
22
+ import"./tool-qhmn26ew.js";
23
23
 
24
24
  // src/services/rule-catalog.ts
25
25
  var BUSINESS_RULE_ENTITY_TYPE = "BusinessRule";
@@ -2,8 +2,8 @@ import {
2
2
  RulesCommandError2,
3
3
  isJsonObject2,
4
4
  reportRulesFailure2
5
- } from "./tool-jzdt6z77.js";
6
- import"./tool-syavphgt.js";
5
+ } from "./tool-5reen5es.js";
6
+ import"./tool-e5jxym27.js";
7
7
  export {
8
8
  RulesCommandError2 as RulesCommandError,
9
9
  isJsonObject2 as isJsonObject,
@@ -2,32 +2,32 @@ import {
2
2
  getAuthContext,
3
3
  PersonalWorkspacesApi,
4
4
  createApiClient
5
- } from "./tool-3755q59j.js";
5
+ } from "./tool-khrsnf6g.js";
6
6
  import {
7
7
  getFileSystem,
8
8
  catchError,
9
9
  logger,
10
10
  OutputFormatter
11
- } from "./tool-syavphgt.js";
11
+ } from "./tool-e5jxym27.js";
12
12
  import {
13
13
  buildSolutionPackageFromDir,
14
14
  uploadOrOverwriteSolution
15
- } from "./tool-v0n0z37s.js";
15
+ } from "./tool-qevn3m4g.js";
16
16
  import {
17
17
  RulesCommandError2,
18
18
  isJsonObject2
19
- } from "./tool-jzdt6z77.js";
19
+ } from "./tool-5reen5es.js";
20
20
  import {
21
21
  assertOneFolderOption2,
22
22
  resolveRequiredFolder2
23
- } from "./tool-sjp6fvze.js";
23
+ } from "./tool-kqj245b2.js";
24
24
  import {
25
25
  findSolutionFile,
26
26
  updateSolutionFile
27
- } from "./tool-0tbve332.js";
27
+ } from "./tool-qhmn26ew.js";
28
28
  import {
29
29
  readRulesProjectNameAsync
30
- } from "./tool-b475et36.js";
30
+ } from "./tool-b32fz6s8.js";
31
31
 
32
32
  // src/services/rules-engine-client.ts
33
33
  var DEBUG_EVALUATE_PATH = "/v1/business-rules/debug/evaluate";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  getFileSystem,
3
3
  catchError
4
- } from "./tool-syavphgt.js";
5
- import"./tool-v0n0z37s.js";
6
- import"./tool-jzdt6z77.js";
4
+ } from "./tool-e5jxym27.js";
5
+ import"./tool-qevn3m4g.js";
6
+ import"./tool-5reen5es.js";
7
7
  import {
8
8
  prepareProjectLocation,
9
9
  tryRegisterProjectInParentSolution
10
- } from "./tool-0tbve332.js";
10
+ } from "./tool-qhmn26ew.js";
11
11
  import {
12
12
  ENTRY_POINTS_FILE,
13
13
  BINDINGS_FILE,
14
14
  buildRuleEntryPointsAsync
15
- } from "./tool-b475et36.js";
15
+ } from "./tool-b32fz6s8.js";
16
16
 
17
17
  // src/services/project-artifacts.ts
18
18
  async function ensureProjectArtifacts(args) {
19
- const { addProjectArtifactsToSolutionAsync } = await import("./index-7105pjnn.js");
19
+ const { addProjectArtifactsToSolutionAsync } = await import("./index-7fhdbe0q.js");
20
20
  return addProjectArtifactsToSolutionAsync(args);
21
21
  }
22
22
 
@@ -2,16 +2,16 @@ import {
2
2
  getFileSystem,
3
3
  catchError,
4
4
  extractErrorMessageSync
5
- } from "./tool-syavphgt.js";
5
+ } from "./tool-e5jxym27.js";
6
6
  import {
7
7
  RulesCommandError2
8
- } from "./tool-jzdt6z77.js";
8
+ } from "./tool-5reen5es.js";
9
9
  import {
10
10
  ENTRY_POINTS_FILE,
11
11
  BINDINGS_FILE,
12
12
  readRuleProjectAsync,
13
13
  buildRuleEntryPointsAsync
14
- } from "./tool-b475et36.js";
14
+ } from "./tool-b32fz6s8.js";
15
15
 
16
16
  // src/services/rules-refresh-service.ts
17
17
  async function refreshRuleProjectAsync(projectPath) {
@@ -1,10 +1,10 @@
1
- import"./tool-syavphgt.js";
2
- import"./tool-jzdt6z77.js";
1
+ import"./tool-e5jxym27.js";
2
+ import"./tool-5reen5es.js";
3
3
  import {
4
4
  ENTRY_POINTS_FILE,
5
5
  readRuleProjectAsync,
6
6
  buildRuleEntryPointsAsync
7
- } from "./tool-b475et36.js";
7
+ } from "./tool-b32fz6s8.js";
8
8
 
9
9
  // src/services/rules-validate-service.ts
10
10
  async function validateRuleProjectAsync(projectPath) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SolutionDefinitionHelper2
3
- } from "./tool-bvzdfw28.js";
3
+ } from "./tool-27a7yxxq.js";
4
4
  export {
5
5
  SolutionDefinitionHelper2 as SolutionDefinitionHelper
6
6
  };
@@ -3,17 +3,17 @@ import {
3
3
  catchError,
4
4
  logger,
5
5
  isGuid
6
- } from "./tool-syavphgt.js";
6
+ } from "./tool-e5jxym27.js";
7
7
  import {
8
8
  getLoginStatusAsync,
9
9
  getAuthContext,
10
10
  UsersApi,
11
11
  createApiClient
12
- } from "./tool-3755q59j.js";
12
+ } from "./tool-khrsnf6g.js";
13
13
  import {
14
14
  normalizeProjectType,
15
15
  toPortableRelativePath
16
- } from "./tool-0tbve332.js";
16
+ } from "./tool-qhmn26ew.js";
17
17
  import {
18
18
  __toESM,
19
19
  __commonJS
@@ -6198,7 +6198,7 @@ class MultiFileSolutionDefinitionProvider {
6198
6198
  const metadataReader = this.metadataReaderAccessor?.();
6199
6199
  if (!metadataReader)
6200
6200
  return void this.logger.warn("Solution %s has resources sharing a key, and no metadata reader is available to resolve them; they are left in place and this read will not agree with one that can resolve them", solution.key);
6201
- const { SolutionDefinitionHelper } = await import("./solution-definition-helper-tyqk2mb3.js");
6201
+ const { SolutionDefinitionHelper } = await import("./solution-definition-helper-ff9v1zts.js");
6202
6202
  await new SolutionDefinitionHelper(metadataReader, this.logger).replaceDuplicateKeysAsync(solution, cancellationToken);
6203
6203
  }
6204
6204
  getSolutionKey(context) {
@@ -6522,7 +6522,7 @@ var service_tokens_ServiceLifetime = /* @__PURE__ */ function(ServiceLifetime) {
6522
6522
  async function createDefaultEmbeddedFileReaderAsync() {
6523
6523
  const [{ EmbeddedFileReader }, { JsonSerializerFactory }] = await Promise.all([
6524
6524
  import("./embedded-file-reader-pxpwcq3n.js"),
6525
- import("./index-c9z3zjpg.js")
6525
+ import("./index-dkd149xj.js")
6526
6526
  ]);
6527
6527
  return new EmbeddedFileReader(new JsonSerializerFactory);
6528
6528
  }
@@ -14301,7 +14301,7 @@ class FirstPartyServiceClientProxy {
14301
14301
  const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
14302
14302
  if (!accountKey)
14303
14303
  throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
14304
- const client = new (await import("./first-party-service-xybnzzaz.js")).FirstPartyServiceApi({
14304
+ const client = new (await import("./first-party-service-s9ba3n8d.js")).FirstPartyServiceApi({
14305
14305
  baseUrl: fullBaseUrl,
14306
14306
  customFetch: fetchWithTimeout(LONG_RUNNING_TIMEOUT_MS),
14307
14307
  baseApiParams: {
@@ -3,7 +3,7 @@ import {
3
3
  classifiedFailure,
4
4
  OutputFormatter,
5
5
  processContext
6
- } from "./tool-syavphgt.js";
6
+ } from "./tool-e5jxym27.js";
7
7
 
8
8
  // src/services/rules-command-error.ts
9
9
  class RulesCommandError2 extends Error {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getFileSystem,
3
3
  catchError
4
- } from "./tool-syavphgt.js";
4
+ } from "./tool-e5jxym27.js";
5
5
  import {
6
6
  RulesCommandError2,
7
7
  isJsonObject2
8
- } from "./tool-jzdt6z77.js";
8
+ } from "./tool-5reen5es.js";
9
9
 
10
10
  // ../packager/packager-tool-businessrules/src/entry-point-id.ts
11
11
  var EntryPointIdSalt = "uipath:business-rules:entry-point";
@@ -2127,12 +2127,26 @@ class NodeFileSystem {
2127
2127
  throw error;
2128
2128
  }
2129
2129
  }
2130
- async writeFile(filePath, data) {
2130
+ async writeFile(filePath, data, options) {
2131
2131
  const dir = path.dirname(filePath);
2132
2132
  if (dir) {
2133
2133
  await fs.mkdir(dir, { recursive: true });
2134
2134
  }
2135
- await fs.writeFile(filePath, data);
2135
+ if (options?.mode === undefined || process.platform === "win32") {
2136
+ if (options?.exclusive) {
2137
+ await fs.writeFile(filePath, data, { flag: "wx" });
2138
+ } else {
2139
+ await fs.writeFile(filePath, data);
2140
+ }
2141
+ return;
2142
+ }
2143
+ const handle = await fs.open(filePath, options.exclusive ? "wx" : "w", options.mode);
2144
+ try {
2145
+ await handle.chmod(options.mode);
2146
+ await handle.writeFile(data);
2147
+ } finally {
2148
+ await handle.close();
2149
+ }
2136
2150
  }
2137
2151
  async appendFile(filePath, data) {
2138
2152
  const dir = path.dirname(filePath);
@@ -2167,7 +2181,8 @@ class NodeFileSystem {
2167
2181
  isDirectory: () => stats.isDirectory(),
2168
2182
  size: stats.size,
2169
2183
  mtimeMs: stats.mtimeMs,
2170
- ctimeMs: stats.ctimeMs
2184
+ ctimeMs: stats.ctimeMs,
2185
+ mode: stats.mode
2171
2186
  };
2172
2187
  } catch (error) {
2173
2188
  if (this.isEnoent(error))
@@ -2178,8 +2193,13 @@ class NodeFileSystem {
2178
2193
  async exists(filePath) {
2179
2194
  return existsSync(filePath);
2180
2195
  }
2181
- async mkdir(dirPath) {
2182
- await fs.mkdir(dirPath, { recursive: true });
2196
+ async mkdir(dirPath, options) {
2197
+ await fs.mkdir(dirPath, { recursive: true, mode: options?.mode });
2198
+ }
2199
+ async chmod(targetPath, mode) {
2200
+ if (process.platform === "win32")
2201
+ return;
2202
+ await fs.chmod(targetPath, mode);
2183
2203
  }
2184
2204
  async acquireLock(lockPath) {
2185
2205
  const canonicalPath = await this.canonicalizeLockTarget(lockPath);
@@ -7051,4 +7071,4 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
7051
7071
  var factorySlot = singleton("PackagerFactoryProvider");
7052
7072
  export { getFileSystem, catchError, extractErrorMessage, extractErrorMessageSync, RESULTS, classifiedFailure, Command, Option, logger, Pagination, OutputFormatter, processContext, DEFAULT_PAGE_SIZE, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType };
7053
7073
 
7054
- //# debugId=98EBE696968BE03A64756E2164756E21
7074
+ //# debugId=AB15AB24EDA097CA64756E2164756E21
@@ -6,7 +6,7 @@ import {
6
6
  getSdkUserAgentToken,
7
7
  addSdkUserAgentHeader,
8
8
  installSdkUserAgentHeader
9
- } from "./tool-syavphgt.js";
9
+ } from "./tool-e5jxym27.js";
10
10
  import {
11
11
  __require
12
12
  } from "./tool-epsr41wx.js";
@@ -42,6 +42,8 @@ function settlePromiseLike(thenable) {
42
42
  // ../auth/src/constants.ts
43
43
  var UIPATH_HOME_DIR = ".uipath";
44
44
  var AUTH_FILENAME = ".auth";
45
+ var AUTH_FILE_MODE = 384;
46
+ var AUTH_DIR_MODE = 448;
45
47
  var DEFAULT_BASE_URL = "https://cloud.uipath.com";
46
48
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
47
49
 
@@ -865,6 +867,38 @@ var loadEnvFileAsync = async ({ envPath }) => {
865
867
  }
866
868
  return parseEnvContent(content);
867
869
  };
870
+ var findAuthHomeDir = (fs, dir) => {
871
+ let current = dir;
872
+ for (;; ) {
873
+ if (fs.path.basename(current) === UIPATH_HOME_DIR)
874
+ return current;
875
+ const parent = fs.path.dirname(current);
876
+ if (parent === current)
877
+ return;
878
+ current = parent;
879
+ }
880
+ };
881
+ var TEMP_FILE_ATTEMPTS = 5;
882
+ var isFileExists = (error) => error instanceof Error && error.code === "EEXIST";
883
+ var writeTempFile = async (fs, targetPath, content) => {
884
+ for (let attempt = 1;; attempt++) {
885
+ const tempPath = `${targetPath}.${crypto.randomUUID()}.tmp`;
886
+ try {
887
+ await fs.writeFile(tempPath, content, {
888
+ mode: AUTH_FILE_MODE,
889
+ exclusive: true
890
+ });
891
+ return tempPath;
892
+ } catch (error) {
893
+ if (!isFileExists(error)) {
894
+ await fs.rm(tempPath).catch(() => {});
895
+ throw error;
896
+ }
897
+ if (attempt === TEMP_FILE_ATTEMPTS)
898
+ throw error;
899
+ }
900
+ }
901
+ };
868
902
  var saveEnvFileAsync = async ({
869
903
  envPath,
870
904
  data,
@@ -892,10 +926,18 @@ var saveEnvFileAsync = async ({
892
926
  `)}
893
927
  `;
894
928
  const dir = fs.path.dirname(absolutePath);
895
- await fs.mkdir(dir);
896
- const tempPath = `${absolutePath}.tmp`;
897
- await fs.writeFile(tempPath, content);
898
- await fs.rename(tempPath, absolutePath);
929
+ await fs.mkdir(dir, { mode: AUTH_DIR_MODE });
930
+ const authHomeDir = findAuthHomeDir(fs, dir);
931
+ if (authHomeDir !== undefined) {
932
+ await fs.chmod?.(authHomeDir, AUTH_DIR_MODE);
933
+ }
934
+ const tempPath = await writeTempFile(fs, absolutePath, content);
935
+ try {
936
+ await fs.rename(tempPath, absolutePath);
937
+ } catch (error) {
938
+ await fs.rm(tempPath).catch(() => {});
939
+ throw error;
940
+ }
899
941
  };
900
942
 
901
943
  // ../auth/src/loginStatus.ts
@@ -3843,4 +3885,4 @@ var KB_INLINE_LIMITS = {
3843
3885
  };
3844
3886
  export { getLoginStatusAsync, getAuthContext, BusinessRulesApi, PersonalWorkspacesApi, UsersApi, createApiClient, resolveFolder, quoteODataStringLiteral };
3845
3887
 
3846
- //# debugId=FCF55219427BCDC464756E2164756E21
3888
+ //# debugId=42807F1B53257CDE64756E2164756E21
@@ -3,10 +3,10 @@ import {
3
3
  createApiClient,
4
4
  resolveFolder,
5
5
  quoteODataStringLiteral
6
- } from "./tool-3755q59j.js";
6
+ } from "./tool-khrsnf6g.js";
7
7
  import {
8
8
  RulesCommandError2
9
- } from "./tool-jzdt6z77.js";
9
+ } from "./tool-5reen5es.js";
10
10
 
11
11
  // src/services/business-rules.ts
12
12
  function assertOneFolderOption2(options) {
@@ -4,7 +4,7 @@ import {
4
4
  getSdkUserAgentToken,
5
5
  addSdkUserAgentHeader,
6
6
  installSdkUserAgentHeader
7
- } from "./tool-syavphgt.js";
7
+ } from "./tool-e5jxym27.js";
8
8
  import {
9
9
  __toESM,
10
10
  __commonJS
@@ -1591,7 +1591,7 @@ var package_default = {
1591
1591
  name: "@uipath/solution-sdk",
1592
1592
  author: "UiPath",
1593
1593
  license: "SEE LICENSE IN LICENSE.txt",
1594
- version: "1.206.0-preview.312",
1594
+ version: "1.206.0-preview.323",
1595
1595
  repository: {
1596
1596
  type: "git",
1597
1597
  url: "https://github.com/UiPath/cli.git",
@@ -1850,4 +1850,4 @@ var SUCCEEDED = "creationsucceeded";
1850
1850
  var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
1851
1851
  export { buildSolutionPackageFromDir, uploadOrOverwriteSolution };
1852
1852
 
1853
- //# debugId=09B0A3A57D71B36864756E2164756E21
1853
+ //# debugId=A263EE455FCF798664756E2164756E21
@@ -3,7 +3,7 @@ import {
3
3
  logger,
4
4
  quoteForShell,
5
5
  unsupportedSolutionProjectType
6
- } from "./tool-syavphgt.js";
6
+ } from "./tool-e5jxym27.js";
7
7
 
8
8
  // ../solution-sdk/src/solution-file.ts
9
9
  var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
@@ -10,13 +10,13 @@ import {
10
10
  parseLimit,
11
11
  parseOffset,
12
12
  parseBoundedInt
13
- } from "./tool-syavphgt.js";
13
+ } from "./tool-e5jxym27.js";
14
14
  // package.json
15
15
  var package_default = {
16
16
  name: "@uipath/rules-tool",
17
17
  author: "UiPath",
18
18
  license: "SEE LICENSE IN LICENSE.txt",
19
- version: "1.206.0-preview.312",
19
+ version: "1.206.0-preview.323",
20
20
  description: "Create and manage UiPath Business Rules (DMN) projects.",
21
21
  private: false,
22
22
  repository: {
@@ -92,8 +92,8 @@ var RULES_DEBUG_EXAMPLES = [
92
92
  ];
93
93
  var registerDebugCommand = (program) => {
94
94
  program.command("debug").description("Upload the rules project's solution to Studio Web and evaluate it once through the rules engine. Returns the decision outputs and errors, and the trace id that shows which rules fired.").argument("<project-path>", "Path to the business rules project directory (must contain project.uiproj)").option("-i, --inputs <json>", "Input values as a JSON object or @file.json").option("--folder-path <path>", "Folder to evaluate in and record the run's trace under (default: your personal workspace)").option("--folder-key <key>", "Key (GUID) of the folder to evaluate in and record the run's trace under").option("--timeout <seconds>", "Maximum seconds to wait for the rules engine to evaluate (default: 120)", (value) => parseBoundedInt(value, "--timeout", { min: 1, max: 3600 })).option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", (value) => Number.parseInt(value, 10), 10).examples(RULES_DEBUG_EXAMPLES).trackedAction(processContext, async (projectPath, options) => {
95
- const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
96
- const { debugRuleProjectAsync } = await import("./rules-debug-service-402prnwx.js");
95
+ const { reportRulesFailure } = await import("./rules-command-error-6kz000f6.js");
96
+ const { debugRuleProjectAsync } = await import("./rules-debug-service-8503259e.js");
97
97
  const [error, result] = await catchError(debugRuleProjectAsync(projectPath, options));
98
98
  if (error) {
99
99
  await reportRulesFailure("Failed to debug business rules project", error);
@@ -189,15 +189,15 @@ var RULES_DESCRIBE_EXAMPLES = [
189
189
  var registerDescribeCommand = (program) => {
190
190
  const command = program.command("describe").description("(Preview) Get the entry points of a deployed business rule's active version, with their input and output argument schemas. Use them to map arguments when binding the rule. Same row shape as 'uip or packages entry-points'.").argument("<rule-name>", "Business rule name");
191
191
  addUnsupportedTenantOption(addFolderOptions(command)).examples(RULES_DESCRIBE_EXAMPLES).trackedAction(processContext, async (name, options) => {
192
- const rules = await import("./business-rules-zfzwr08c.js");
193
- const { reportRulesFailure, RulesCommandError } = await import("./rules-command-error-2x1vm0wt.js");
192
+ const rules = await import("./business-rules-07pq6ba3.js");
193
+ const { reportRulesFailure, RulesCommandError } = await import("./rules-command-error-6kz000f6.js");
194
194
  if (options.tenant !== undefined) {
195
195
  await reportRulesFailure("Failed to describe business rule", new RulesCommandError("'uip rules describe' does not support --tenant: it reads the rule from the resource catalog of the tenant you are logged in to.", "invalid_argument", "Run 'uip login tenant set <tenant-name>' to switch tenants, then run the command again."));
196
196
  return;
197
197
  }
198
198
  const [error, entryPoints] = await catchError((async () => {
199
199
  const folder = await rules.resolveRequiredFolder(options);
200
- const { describeRuleAsync } = await import("./rule-catalog-drpaxvwg.js");
200
+ const { describeRuleAsync } = await import("./rule-catalog-tfv47ncn.js");
201
201
  return describeRuleAsync(name, folder);
202
202
  })());
203
203
  if (error) {
@@ -236,8 +236,8 @@ var RULES_GET_EXAMPLES = [
236
236
  var registerGetCommand = (program) => {
237
237
  const command = program.command("get").description("(Preview) Get a deployed business rule by name. Use 'rules versions' for its version history and 'rules describe' for its argument contract.").argument("<rule-name>", "Business rule name");
238
238
  addTenantOption(addFolderOptions(command)).examples(RULES_GET_EXAMPLES).trackedAction(processContext, async (name, options) => {
239
- const rules = await import("./business-rules-zfzwr08c.js");
240
- const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
239
+ const rules = await import("./business-rules-07pq6ba3.js");
240
+ const { reportRulesFailure } = await import("./rules-command-error-6kz000f6.js");
241
241
  const [error, found] = await catchError((async () => {
242
242
  const folder = await rules.resolveRequiredFolder(options);
243
243
  const api = await rules.createRulesApi(options.tenant, folder);
@@ -290,7 +290,7 @@ Packing or uploading the solution will sync solution resources automatically.`
290
290
  ];
291
291
  var registerInitCommand = (program) => {
292
292
  program.command("init").description("Create a new business rules project seeded with one decision table. If run outside an existing solution, a parent '<name>Solution' is scaffolded automatically and the rules project is created inside it. If run inside an existing solution, the project is added to that solution.").argument("<name>", "Business rules project name").option("--force", "Force initialization even if target directory exists and is not empty").option("--skip-solution-registration", "Do not auto-register this project in the surrounding solution").examples(RULES_INIT_EXAMPLES).trackedAction(processContext, async (name, options) => {
293
- const { rulesInitAsync } = await import("./rules-init-service-tz95ezcn.js");
293
+ const { rulesInitAsync } = await import("./rules-init-service-4ra8ettp.js");
294
294
  const [error, result] = await catchError(rulesInitAsync(name, {
295
295
  force: options.force,
296
296
  skipRegistration: options.skipSolutionRegistration === true
@@ -366,7 +366,7 @@ var RULES_LIST_EXAMPLES = [
366
366
  var registerListCommand = (program) => {
367
367
  const command = program.command("list").description("(Preview) List business rules deployed to Orchestrator in a folder, or across all accessible folders with --all-folders. Returns key, name, folder, description and, for one folder, current version. --all-folders returns one row per folder a rule is shared to.");
368
368
  addTenantOption(addFolderOptions(command)).option("--all-folders", "List business rules across all accessible folders").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).examples(RULES_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
369
- const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
369
+ const { reportRulesFailure } = await import("./rules-command-error-6kz000f6.js");
370
370
  const [error, result] = await catchError(listRules(options));
371
371
  if (error) {
372
372
  await reportRulesFailure("Failed to list business rules", error);
@@ -386,8 +386,8 @@ var registerListCommand = (program) => {
386
386
  });
387
387
  };
388
388
  async function listRules(options) {
389
- const rules = await import("./business-rules-zfzwr08c.js");
390
- const { RulesCommandError } = await import("./rules-command-error-2x1vm0wt.js");
389
+ const rules = await import("./business-rules-07pq6ba3.js");
390
+ const { RulesCommandError } = await import("./rules-command-error-6kz000f6.js");
391
391
  const hasFolderSelector = options.folderPath !== undefined || options.folderKey !== undefined;
392
392
  if (options.allFolders && hasFolderSelector) {
393
393
  throw new RulesCommandError("Option --all-folders cannot be used with --folder-path or --folder-key.", "invalid_argument", "Use --all-folders by itself, or provide a single folder selector with --folder-path or --folder-key.");
@@ -410,11 +410,11 @@ async function listRules(options) {
410
410
  };
411
411
  }
412
412
  async function listRulesAcrossFolders(options) {
413
- const { RulesCommandError } = await import("./rules-command-error-2x1vm0wt.js");
413
+ const { RulesCommandError } = await import("./rules-command-error-6kz000f6.js");
414
414
  if (options.tenant !== undefined) {
415
415
  throw new RulesCommandError("'uip rules list --all-folders' does not support --tenant: it lists rules from the resource catalog of the tenant you are logged in to.", "invalid_argument", "Drop --all-folders and pass --folder-path <path> or --folder-key <key> to list one folder in that tenant, or run 'uip login tenant set <tenant-name>' to switch tenants.");
416
416
  }
417
- const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-drpaxvwg.js");
417
+ const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-tfv47ncn.js");
418
418
  const result = await listRulesAcrossFoldersAsync(options.limit, options.offset);
419
419
  if (!result) {
420
420
  throw new RulesCommandError("Listing business rules across folders needs the Node CLI: the browser build cannot read the resource catalog.", "configuration_error", "Drop --all-folders and pass --folder-path <path> or --folder-key <key> to list one folder.");
@@ -441,8 +441,8 @@ var RULES_REFRESH_EXAMPLES = [
441
441
  ];
442
442
  var registerRefreshCommand = (program) => {
443
443
  program.command("refresh").description("Regenerate entry-points.json and bindings_v2.json from the rules project's .dmn, keeping each published entry point's uniqueId. Run it after editing a .dmn outside Studio Web, before 'uip solution pack'.").argument("<project-path>", "Path to the business rules project directory (must contain project.uiproj)").examples(RULES_REFRESH_EXAMPLES).trackedAction(processContext, async (projectPath) => {
444
- const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
445
- const { refreshRuleProjectAsync } = await import("./rules-refresh-service-x3gfnfqt.js");
444
+ const { reportRulesFailure } = await import("./rules-command-error-6kz000f6.js");
445
+ const { refreshRuleProjectAsync } = await import("./rules-refresh-service-6t8nh920.js");
446
446
  const [error, result] = await catchError(refreshRuleProjectAsync(projectPath));
447
447
  if (error) {
448
448
  await reportRulesFailure("Failed to refresh business rules package files", error);
@@ -480,8 +480,8 @@ var RULES_VALIDATE_EXAMPLES = [
480
480
  ];
481
481
  var registerValidateCommand = (program) => {
482
482
  program.command("validate").description("Check a rules project for what Studio Web blocks publish and debug on, the designer's diagnostics for each .dmn, and for an entry-points.json out of step with the .dmn. Errors exit 1; warnings are reported only.").argument("<project-path>", "Path to the business rules project directory (must contain project.uiproj)").examples(RULES_VALIDATE_EXAMPLES).trackedAction(processContext, async (projectPath) => {
483
- const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
484
- const { validateRuleProjectAsync } = await import("./rules-validate-service-e47hgykv.js");
483
+ const { reportRulesFailure } = await import("./rules-command-error-6kz000f6.js");
484
+ const { validateRuleProjectAsync } = await import("./rules-validate-service-prv20v19.js");
485
485
  const [error, result] = await catchError(validateRuleProjectAsync(projectPath));
486
486
  if (error) {
487
487
  await reportRulesFailure("Failed to validate business rules project", error);
@@ -556,8 +556,8 @@ var RULES_VERSIONS_EXAMPLES = [
556
556
  var registerVersionsCommand = (program) => {
557
557
  const command = program.command("versions").description("(Preview) List the versions of a deployed business rule. The active version is the one consumers evaluate.").argument("<rule-name>", "Business rule name");
558
558
  addTenantOption(addFolderOptions(command)).option("-l, --limit <number>", "Number of versions to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of versions to skip", parseOffset, 0).examples(RULES_VERSIONS_EXAMPLES).trackedAction(processContext, async (name, options) => {
559
- const rules = await import("./business-rules-zfzwr08c.js");
560
- const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
559
+ const rules = await import("./business-rules-07pq6ba3.js");
560
+ const { reportRulesFailure } = await import("./rules-command-error-6kz000f6.js");
561
561
  const [error, page] = await catchError((async () => {
562
562
  const folder = await rules.resolveRequiredFolder(options);
563
563
  const api = await rules.createRulesApi(options.tenant, folder);
@@ -609,4 +609,4 @@ var registerCommands2 = async (program) => {
609
609
 
610
610
  export { metadata2, registerCommands2 };
611
611
 
612
- //# debugId=35AC4F2C758788C164756E2164756E21
612
+ //# debugId=8731E555A878132264756E2164756E21
package/dist/tool.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  metadata2,
3
3
  registerCommands2
4
- } from "./tool-pg61e8zk.js";
5
- import"./tool-syavphgt.js";
4
+ } from "./tool-zmqdwaye.js";
5
+ import"./tool-e5jxym27.js";
6
6
  export {
7
7
  metadata2 as metadata,
8
8
  registerCommands2 as registerCommands
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/rules-tool",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.206.0-preview.312",
5
+ "version": "1.206.0-preview.323",
6
6
  "description": "Create and manage UiPath Business Rules (DMN) projects.",
7
7
  "private": false,
8
8
  "repository": {
@@ -27,5 +27,5 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
- "gitHead": "ee91749054ba110153977dd920a4c84761ce82cd"
30
+ "gitHead": "a752d8a8d78de138e3be0a19642620fec7893d99"
31
31
  }