@uipath/rules-tool 0.0.0-stage → 1.204.0-preview.250

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 (49) hide show
  1. package/LICENSE.txt +3 -0
  2. package/README.md +80 -2
  3. package/dist/DmnFactory-VWZOSZHH-jkpbxz3n.js +42 -0
  4. package/dist/DmnModelTypes-ATR7FVKZ-jp35cecy.js +18 -0
  5. package/dist/KieDmnMarshaller-6TTUU5B4-47q50gk4.js +20 -0
  6. package/dist/THIRD-PARTY-NOTICES.md +1054 -0
  7. package/dist/business-rules-bnr581tz.js +26 -0
  8. package/dist/constants-9pa118cj.js +29 -0
  9. package/dist/embedded-file-reader-rf2g1kfj.js +114 -0
  10. package/dist/first-party-service-sd8yaf73.js +27 -0
  11. package/dist/hitPolicyResult-4WDHTX4A-gk103w84.js +33 -0
  12. package/dist/index-2hzp9b97.js +116 -0
  13. package/dist/index-34pj9f36.js +48 -0
  14. package/dist/index-4c4exdzw.js +3035 -0
  15. package/dist/index-dqa169gp.js +25 -0
  16. package/dist/index-fs1nd5ap.js +200 -0
  17. package/dist/index-sby22td6.js +634 -0
  18. package/dist/index-t4mx1a5e.js +17 -0
  19. package/dist/index.js +17 -0
  20. package/dist/jmespath-231m3hyn.js +1485 -0
  21. package/dist/js-yaml-88tdqrtd.js +3153 -0
  22. package/dist/rule-catalog-5gzpe93c.js +46 -0
  23. package/dist/rules-command-error-20gp2dv9.js +14 -0
  24. package/dist/rules-debug-service-cmgmbhyh.js +193 -0
  25. package/dist/rules-init-service-b74thek5.js +104 -0
  26. package/dist/rules-refresh-service-jgk2kq9d.js +66 -0
  27. package/dist/rules-validate-service-mr2fk58k.js +63 -0
  28. package/dist/tool-19b4ect0.js +754 -0
  29. package/dist/tool-1de529jm.js +39 -0
  30. package/dist/tool-2cky8jwp.js +17878 -0
  31. package/dist/tool-4dfpdepw.js +55 -0
  32. package/dist/tool-53w8skv5.js +262 -0
  33. package/dist/tool-7haj67tr.js +19 -0
  34. package/dist/tool-8h4er38s.js +11063 -0
  35. package/dist/tool-8qy8pkp4.js +40 -0
  36. package/dist/tool-av4mmsef.js +73 -0
  37. package/dist/tool-eymjx05p.js +6396 -0
  38. package/dist/tool-gdtpsdn7.js +342 -0
  39. package/dist/tool-jd313s2x.js +10 -0
  40. package/dist/tool-jxvk6306.js +574 -0
  41. package/dist/tool-m41px07w.js +49 -0
  42. package/dist/tool-mkn83w88.js +111 -0
  43. package/dist/tool-pm3ewdxc.js +1115 -0
  44. package/dist/tool-qgqscsjc.js +46 -0
  45. package/dist/tool-tkcx6png.js +6558 -0
  46. package/dist/tool-wmh645tm.js +4022 -0
  47. package/dist/tool-x0z7hxqr.js +916 -0
  48. package/dist/tool.js +12 -0
  49. package/package.json +30 -5
package/LICENSE.txt ADDED
@@ -0,0 +1,3 @@
1
+ © 2026 UiPath
2
+ Use of this product is subject (a) to the applicable licensing agreement available: https://www.uipath.com/legal/trust-and-security/legal-terms#content-1 and, (b) for paid products listed here https://licensing.uipath.com/: the licensing agreement agreed between you and UiPath.
3
+ (UiPath means UiPath SRL with headquarters at 4 Vasile Alecsandri Str. and 11 Constantin Daniel Str., Building A, floors 5 and 6, District 1, Bucharest 010639, Romania and UiPath Inc. with principal place of business: One Vanderbilt Avenue, 60th Floor, New York, NY 10017)
package/README.md CHANGED
@@ -1,3 +1,81 @@
1
- # Temporary Holding Version
1
+ # @uipath/rules-tool
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Commands for UiPath Business Rules (DMN) projects, registered as `uip rules`.
4
+
5
+ ## Commands
6
+
7
+ ### `init`
8
+
9
+ Scaffold a Business Rules project seeded with the decision table the Studio Web designer creates for a new project, and register it in the enclosing solution.
10
+
11
+ ```bash
12
+ uip rules init <name> [--force] [--skip-solution-registration]
13
+ ```
14
+
15
+ The project holds `project.uiproj`, `Business rule.dmn`, `entry-points.json` and `bindings_v2.json`. Outside a solution, a `<name>Solution` folder is created around it. A re-run with `--force` leaves an existing `.dmn` and its `entry-points.json` untouched and reports `RuleStatus: "Preserved"`.
16
+
17
+ ### `refresh`
18
+
19
+ Regenerate `entry-points.json` and `bindings_v2.json` from the project's `.dmn` files, keeping each entry point's `uniqueId`.
20
+
21
+ ```bash
22
+ uip rules refresh <project-path>
23
+ ```
24
+
25
+ ### `validate`
26
+
27
+ Validate a rules project: the designer's `DMN_*` diagnostics for each `.dmn`, and `RULES_ENTRY_POINTS_STALE` when `entry-points.json` no longer matches the `.dmn`.
28
+
29
+ ```bash
30
+ uip rules validate <project-path>
31
+ ```
32
+
33
+ ### `list`
34
+
35
+ List the business rules deployed to Orchestrator in a folder: key, name, folder, description and current version.
36
+
37
+ ```bash
38
+ uip rules list (--folder-path <path> | --folder-key <key>) [--limit <number>] [--offset <number>]
39
+ ```
40
+
41
+ `--limit` and `--offset` count rows. An empty folder returns `Data: []`.
42
+
43
+ ### `get`
44
+
45
+ Get one deployed rule by name, with its tags and timestamps.
46
+
47
+ ```bash
48
+ uip rules get <rule-name> (--folder-path <path> | --folder-key <key>)
49
+ ```
50
+
51
+ ### `versions`
52
+
53
+ List the versions of a deployed rule. The active version is the one consumers evaluate.
54
+
55
+ ```bash
56
+ uip rules versions <rule-name> (--folder-path <path> | --folder-key <key>) [--limit <number>] [--offset <number>]
57
+ ```
58
+
59
+ ### `describe`
60
+
61
+ Get the entry points of a deployed rule's active version, with their input and output argument schemas, in the same row shape as `uip or packages entry-points`. Use them to map arguments when binding the rule from a BPMN process, RPA workflow or case.
62
+
63
+ ```bash
64
+ uip rules describe <rule-name> (--folder-path <path> | --folder-key <key>)
65
+ ```
66
+
67
+ `describe` reads the rule from the resource catalog of the tenant you are logged in to, so it rejects `--tenant`; switch tenants with `uip login tenant set <tenant-name>`.
68
+
69
+ `list`, `get`, `versions` and `describe` each need exactly one of `--folder-path` or `--folder-key`. A rule the folder does not hold is `not_found`.
70
+
71
+ `list`, `get`, `versions` and `describe` are in preview: they read rules from Orchestrator, and a later CLI version may be required to keep using them.
72
+
73
+ ### `debug`
74
+
75
+ Upload the rules project's solution to Studio Web and evaluate it once through the rules engine, to check what a rule returns before shipping it.
76
+
77
+ ```bash
78
+ uip rules debug <project-path> [--inputs <json|@file.json>] [--explain] [--folder-path <path> | --folder-key <key>] [--timeout <seconds>] [--login-validity <minutes>]
79
+ ```
80
+
81
+ The project must sit directly inside its solution folder, as `rules init` creates it. `--inputs` is one JSON object of input values (default `{}`). A newly assigned `SolutionId` is written to the `.uipx`, so later runs overwrite the same Studio Web solution. An input the engine fails to evaluate exits `1` with `ErrorCode: invalid_argument` and the engine's errors in `Data.results`. The engine runs in your personal workspace, or in the folder given by `--folder-path` / `--folder-key`. With `--explain`, the run's trace id is returned; the trace is published into that folder and read with `uip traces spans get <trace-id>`. The engine call waits up to `--timeout` seconds (default 120), then fails with `ErrorCode: timeout`. `--login-validity` refreshes the session first when it has fewer than that many minutes left (default 10).
@@ -0,0 +1,42 @@
1
+ import {
2
+ $,
3
+ A,
4
+ B,
5
+ C,
6
+ O,
7
+ P,
8
+ S,
9
+ U,
10
+ _,
11
+ ae,
12
+ ie,
13
+ oe,
14
+ q,
15
+ re,
16
+ se,
17
+ w
18
+ } from "./tool-wmh645tm.js";
19
+ import"./tool-jd313s2x.js";
20
+ import"./tool-qgqscsjc.js";
21
+ import"./tool-7haj67tr.js";
22
+ import"./tool-1de529jm.js";
23
+ export {
24
+ C as DEFAULT_ANNOTATION_CLAUSE_NAME,
25
+ _ as DEFAULT_DECISION_NAME,
26
+ S as EMPTY_OUTPUT_TEXT,
27
+ oe as FEEL_NAME_CHAR,
28
+ A as MAESTRO_EXPORTER,
29
+ O as createBusinessRuleIdentity,
30
+ P as createNewBusinessRuleModel,
31
+ ie as createSeededBusinessRuleModel,
32
+ q as deriveInputData,
33
+ ae as expressionRoot,
34
+ $ as inputExpressionRoots,
35
+ re as isEmptyOutputText,
36
+ w as isFeelIdentifier,
37
+ B as outputArgumentName,
38
+ U as outputNameFromLabel,
39
+ se as resultIsKeyedByClause
40
+ };
41
+
42
+ //# debugId=F96FEBDCE4B1D64164756E2164756E21
@@ -0,0 +1,18 @@
1
+ import {
2
+ e,
3
+ i,
4
+ n,
5
+ r,
6
+ t
7
+ } from "./tool-jd313s2x.js";
8
+ import"./tool-7haj67tr.js";
9
+ import"./tool-1de529jm.js";
10
+ export {
11
+ i as DMN_COLLECT_AGGREGATIONS,
12
+ t as DMN_HIT_POLICIES,
13
+ n as DmnCollectAggregation,
14
+ e as DmnHitPolicy,
15
+ r as FEEL_TYPE_OPTIONS
16
+ };
17
+
18
+ //# debugId=C0201CCC883B1AF064756E2164756E21
@@ -0,0 +1,20 @@
1
+ import {
2
+ Ft,
3
+ Is,
4
+ Ot,
5
+ Rs,
6
+ bs,
7
+ hs
8
+ } from "./tool-8h4er38s.js";
9
+ import"./tool-7haj67tr.js";
10
+ import"./tool-1de529jm.js";
11
+ export {
12
+ hs as buildDmnDocument,
13
+ bs as importDmnDocument,
14
+ Ft as inspectDmnDocument,
15
+ Rs as moveExtensionTextToAttributes,
16
+ Ot as parseDmnDocument,
17
+ Is as refusalToWriteBack
18
+ };
19
+
20
+ //# debugId=ADE34E66F4C28D7364756E2164756E21