@uipath/rules-tool 1.204.0-preview.249 → 1.204.0-preview.254

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 (154) hide show
  1. package/dist/DmnFactory-VWZOSZHH-jkpbxz3n.js +42 -0
  2. package/dist/DmnModelTypes-ATR7FVKZ-jp35cecy.js +18 -0
  3. package/dist/KieDmnMarshaller-6TTUU5B4-47q50gk4.js +20 -0
  4. package/dist/THIRD-PARTY-NOTICES.md +1085 -0
  5. package/dist/business-rules-bnr581tz.js +26 -0
  6. package/dist/{constants-za5vbzp8.js → constants-9pa118cj.js} +17 -10
  7. package/dist/{embedded-file-reader-wmsg31a8.js → embedded-file-reader-rf2g1kfj.js} +4 -1
  8. package/dist/first-party-service-sd8yaf73.js +27 -0
  9. package/dist/hitPolicyResult-4WDHTX4A-gk103w84.js +33 -0
  10. package/dist/index-2hzp9b97.js +116 -0
  11. package/dist/index-34pj9f36.js +48 -0
  12. package/dist/{index-zdwhfpt1.js → index-4c4exdzw.js} +370 -406
  13. package/dist/index-dqa169gp.js +25 -0
  14. package/dist/{index-we6zjs66.js → index-fs1nd5ap.js} +40 -4
  15. package/dist/{index-nzr4mx5p.js → index-sby22td6.js} +22 -2
  16. package/dist/{index-7wc0g78k.js → index-t4mx1a5e.js} +5 -2
  17. package/dist/index.js +9 -8
  18. package/dist/{jmespath-ab6tdc42.js → jmespath-231m3hyn.js} +1 -1
  19. package/dist/{js-yaml-a2bk27p6.js → js-yaml-88tdqrtd.js} +3 -1
  20. package/dist/rule-catalog-5gzpe93c.js +46 -0
  21. package/dist/rules-command-error-20gp2dv9.js +14 -0
  22. package/dist/{rules-debug-service-h1ahd6p3.js → rules-debug-service-yvh448xp.js} +36 -35
  23. package/dist/{rules-init-service-y678kjje.js → rules-init-service-ewahc0vh.js} +16 -12
  24. package/dist/{rules-refresh-service-btn64j8j.js → rules-refresh-service-jgk2kq9d.js} +14 -13
  25. package/dist/{rules-validate-service-sppr4x13.js → rules-validate-service-mr2fk58k.js} +13 -10
  26. package/dist/{tool-97x3zjcm.js → tool-19b4ect0.js} +158 -113
  27. package/dist/{tool-epsr41wx.js → tool-1de529jm.js} +3 -12
  28. package/dist/{tool-7xmarr97.js → tool-2cky8jwp.js} +2578 -1777
  29. package/dist/{tool-x67kek1m.js → tool-2qj74g14.js} +12 -652
  30. package/dist/{tool-0bthsb3x.js → tool-4dfpdepw.js} +15 -15
  31. package/dist/tool-53w8skv5.js +262 -0
  32. package/dist/tool-7haj67tr.js +19 -0
  33. package/dist/{tool-e1mmqsjr.js → tool-8h4er38s.js} +411 -396
  34. package/dist/{tool-2trg1fpx.js → tool-8qy8pkp4.js} +8 -8
  35. package/dist/tool-av4mmsef.js +73 -0
  36. package/dist/{tool-6sqt4zrx.js → tool-cgmy94zt.js} +32 -29
  37. package/dist/{tool-8j9f6ns5.js → tool-eymjx05p.js} +11 -11
  38. package/dist/{tool-mm1x18d6.js → tool-gdtpsdn7.js} +28 -223
  39. package/dist/tool-m41px07w.js +49 -0
  40. package/dist/{tool-k2s349kn.js → tool-mkn83w88.js} +17 -14
  41. package/dist/tool-pm3ewdxc.js +1115 -0
  42. package/dist/{tool-6rp0gx98.js → tool-tkcx6png.js} +107 -127
  43. package/dist/{tool-1dycs173.js → tool-wmh645tm.js} +202 -194
  44. package/dist/tool.js +8 -7
  45. package/package.json +2 -15
  46. package/dist/DmnFactory-SG3RP3T3-cr8e7mxz.js +0 -8
  47. package/dist/DmnFactory-VWZOSZHH-azx0zqcn.js +0 -8
  48. package/dist/DmnModelTypes-ATR7FVKZ-vkv7n0jn.js +0 -8
  49. package/dist/KieDmnMarshaller-6TTUU5B4-rsxhvw7a.js +0 -8
  50. package/dist/business-rules-d51977r1.js +0 -25
  51. package/dist/business-rules-dekge24t.js +0 -23
  52. package/dist/business-rules-ew76mbwg.js +0 -25
  53. package/dist/business-rules-jmwx05k2.js +0 -25
  54. package/dist/business-rules-zpzqxyce.js +0 -26
  55. package/dist/constants-4r8pfr16.js +0 -22
  56. package/dist/embedded-file-reader-0228j82a.js +0 -111
  57. package/dist/first-party-service-1qa6cp4d.js +0 -8
  58. package/dist/first-party-service-28dkctkz.js +0 -8
  59. package/dist/first-party-service-4fsz3cnj.js +0 -8
  60. package/dist/first-party-service-ahcc6xc6.js +0 -8
  61. package/dist/first-party-service-y1ccmsvp.js +0 -8
  62. package/dist/first-party-service-zpr1q3nd.js +0 -8
  63. package/dist/hitPolicyResult-4WDHTX4A-dbtkgpqp.js +0 -12
  64. package/dist/index-2zxy6zgp.js +0 -23
  65. package/dist/index-3nx77wfh.js +0 -23
  66. package/dist/index-43zg1wqe.js +0 -19621
  67. package/dist/index-47jera73.js +0 -23
  68. package/dist/index-70jn7cz1.js +0 -19631
  69. package/dist/index-8kb5kc5y.js +0 -24
  70. package/dist/index-97yad7ms.js +0 -8
  71. package/dist/index-dfn83hxf.js +0 -14
  72. package/dist/index-e301h23h.js +0 -24
  73. package/dist/index-frd259yv.js +0 -24
  74. package/dist/index-gc7cw2jh.js +0 -23
  75. package/dist/index-gya2v502.js +0 -8
  76. package/dist/index-hb3gk1wf.js +0 -24
  77. package/dist/index-nsnfdqd5.js +0 -24
  78. package/dist/index-vffktc0w.js +0 -166
  79. package/dist/index-xymrydfw.js +0 -3095
  80. package/dist/index-z2qk2qn6.js +0 -24
  81. package/dist/index-zecwgvg7.js +0 -23
  82. package/dist/rule-catalog-a5w86qns.js +0 -43
  83. package/dist/rule-catalog-etpf962f.js +0 -69
  84. package/dist/rule-catalog-q5cr17hf.js +0 -58
  85. package/dist/rule-catalog-vc98yg4n.js +0 -43
  86. package/dist/rule-catalog-z3h66kh5.js +0 -56
  87. package/dist/rules-command-error-10qmb5w7.js +0 -13
  88. package/dist/rules-command-error-5bdv4bcx.js +0 -13
  89. package/dist/rules-command-error-cmssf0w4.js +0 -13
  90. package/dist/rules-command-error-fsm3b1mv.js +0 -13
  91. package/dist/rules-debug-service-5rcdh3pj.js +0 -192
  92. package/dist/rules-debug-service-8q7mkd0r.js +0 -199
  93. package/dist/rules-debug-service-b9j29ejz.js +0 -192
  94. package/dist/rules-debug-service-v3jr3r1n.js +0 -192
  95. package/dist/rules-init-service-3c2yfa7p.js +0 -687
  96. package/dist/rules-init-service-3wgd9cqp.js +0 -100
  97. package/dist/rules-init-service-8fqytxq0.js +0 -685
  98. package/dist/rules-init-service-pspt7sje.js +0 -100
  99. package/dist/rules-init-service-sbtzw93j.js +0 -102
  100. package/dist/rules-init-service-x7paqa63.js +0 -687
  101. package/dist/rules-init-service-y7qzmxx0.js +0 -102
  102. package/dist/rules-refresh-service-4xxj6ex6.js +0 -65
  103. package/dist/rules-refresh-service-ba5jk1y9.js +0 -65
  104. package/dist/rules-refresh-service-qkmphj53.js +0 -65
  105. package/dist/rules-validate-service-dmgnfne7.js +0 -60
  106. package/dist/rules-validate-service-hk2d006t.js +0 -60
  107. package/dist/rules-validate-service-xp05n2d9.js +0 -60
  108. package/dist/tool-1pkqxwwd.js +0 -17472
  109. package/dist/tool-24mr6g8c.js +0 -1556
  110. package/dist/tool-39fmkx2d.js +0 -611
  111. package/dist/tool-3e2q1x2y.js +0 -6578
  112. package/dist/tool-3j0747gg.js +0 -17077
  113. package/dist/tool-4z7zcq4z.js +0 -6058
  114. package/dist/tool-56smnjrh.js +0 -73
  115. package/dist/tool-5qygptrc.js +0 -6171
  116. package/dist/tool-5xx6x8pe.js +0 -6596
  117. package/dist/tool-7fkrd618.js +0 -1556
  118. package/dist/tool-89xzeteg.js +0 -361
  119. package/dist/tool-911s9czz.js +0 -570
  120. package/dist/tool-9bz2x04j.js +0 -40
  121. package/dist/tool-akh7nnqs.js +0 -704
  122. package/dist/tool-axfzew45.js +0 -1555
  123. package/dist/tool-b71jq9pt.js +0 -389
  124. package/dist/tool-bfj846v8.js +0 -141
  125. package/dist/tool-bvmc017m.js +0 -96
  126. package/dist/tool-bykz5ryf.js +0 -454
  127. package/dist/tool-c76qb8ap.js +0 -17052
  128. package/dist/tool-ca15515v.js +0 -570
  129. package/dist/tool-f9qs255w.js +0 -70
  130. package/dist/tool-ga79rety.js +0 -389
  131. package/dist/tool-gb547mcn.js +0 -141
  132. package/dist/tool-gta9rr4h.js +0 -68
  133. package/dist/tool-h2dfnxdq.js +0 -6486
  134. package/dist/tool-hg6vr5y9.js +0 -3769
  135. package/dist/tool-hgvnm4vh.js +0 -1843
  136. package/dist/tool-hjbf9aay.js +0 -571
  137. package/dist/tool-k5jm64n3.js +0 -5650
  138. package/dist/tool-ketztpgf.js +0 -73
  139. package/dist/tool-n1d88ryb.js +0 -6396
  140. package/dist/tool-nmqpwh9m.js +0 -6166
  141. package/dist/tool-pb80pswx.js +0 -73
  142. package/dist/tool-pcsgwpfw.js +0 -40
  143. package/dist/tool-q3c1bjyb.js +0 -454
  144. package/dist/tool-rwp1skmf.js +0 -40
  145. package/dist/tool-s3fbt22r.js +0 -454
  146. package/dist/tool-tmbst1r8.js +0 -68
  147. package/dist/tool-v6w109p0.js +0 -455
  148. package/dist/tool-w2js05qv.js +0 -389
  149. package/dist/tool-x89947ah.js +0 -17052
  150. package/dist/tool-xhksjdka.js +0 -4005
  151. package/dist/tool-yv3t4gg5.js +0 -108
  152. package/dist/tool-zbyb1ttx.js +0 -5650
  153. /package/dist/{tool-fbqnqf9k.js → tool-jd313s2x.js} +0 -0
  154. /package/dist/{tool-vyx8fpft.js → tool-qgqscsjc.js} +0 -0
@@ -0,0 +1,25 @@
1
+ import {
2
+ CAMEL_CASE_ENUM_PROPERTIES,
3
+ JsonSerializer,
4
+ JsonSerializerFactory,
5
+ JsonSerializerNames,
6
+ JsonSerializerProxy,
7
+ PASCAL_CASE_ENUM_PROPERTIES,
8
+ RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES,
9
+ SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
10
+ StreamSerializer
11
+ } from "./tool-gdtpsdn7.js";
12
+ import"./tool-1de529jm.js";
13
+ export {
14
+ CAMEL_CASE_ENUM_PROPERTIES,
15
+ JsonSerializer,
16
+ JsonSerializerFactory,
17
+ JsonSerializerNames,
18
+ JsonSerializerProxy,
19
+ PASCAL_CASE_ENUM_PROPERTIES,
20
+ RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES,
21
+ SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
22
+ StreamSerializer
23
+ };
24
+
25
+ //# debugId=A79DD62A6A37B41864756E2164756E21
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  v4_default
3
- } from "./tool-vyx8fpft.js";
3
+ } from "./tool-qgqscsjc.js";
4
+ import"./tool-7haj67tr.js";
5
+ import {
6
+ __require
7
+ } from "./tool-1de529jm.js";
4
8
 
5
9
  // ../../node_modules/@uipath/dmn-editor-utils/dist/entry-points/index.js
6
10
  function T(e) {
@@ -30,6 +34,29 @@ function T(e) {
30
34
  }
31
35
  }
32
36
  var j = "x-uipath-decision-keyed";
37
+ var L = (e) => {
38
+ try {
39
+ return JSON.parse(e);
40
+ } catch {
41
+ return;
42
+ }
43
+ };
44
+ var B = (e) => {
45
+ let t = typeof e == "string" ? L(e) : e;
46
+ if (!(!t || typeof t != "object" || t[j] !== true))
47
+ return Object.keys(t.properties ?? {}).length > 0 ? t : undefined;
48
+ };
49
+ var Y = (e) => {
50
+ let t = B(e);
51
+ if (!t)
52
+ return e;
53
+ let s = {};
54
+ for (let m of Object.values(t.properties ?? {}))
55
+ for (let [a, c] of Object.entries(m.properties ?? {}))
56
+ s[a] ??= c;
57
+ let { definitions: r, $defs: u } = t;
58
+ return { type: "object", properties: s, ...r ? { definitions: r } : {}, ...u ? { $defs: u } : {} };
59
+ };
33
60
  var J = { "invalid-xml": "The rule is not valid XML.", "unsafe-xml": "The rule declares a document type, which is not allowed.", "lossy-xml": "The rule contains comments or processing instructions that cannot be preserved.", "unsupported-version": "The rule uses a DMN version that is not supported.", "migration-failed": "The rule could not be migrated to a supported DMN version.", "unsupported-profile": "The rule uses DMN constructs that are not supported." };
34
61
  var $ = class extends Error {
35
62
  constructor(s) {
@@ -49,7 +76,7 @@ var W = (e, t) => {
49
76
  };
50
77
  var G = (e) => ({ name: e.variable?.["@_name"] || e["@_name"] || "", displayName: e["@_name"] || e.variable?.["@_name"] || "", type: T(e.variable?.["@_typeRef"] ?? ""), required: true });
51
78
  async function U(e) {
52
- let [{ importDmnDocument: t }, { outputArgumentName: s }, { aggregateTypeRef: r, isCollectAggregation: u, LIST_HIT_POLICIES: m }, { DmnHitPolicy: a }] = await Promise.all([import("./KieDmnMarshaller-6TTUU5B4-rsxhvw7a.js"), import("./DmnFactory-VWZOSZHH-azx0zqcn.js"), import("./hitPolicyResult-4WDHTX4A-dbtkgpqp.js"), import("./DmnModelTypes-ATR7FVKZ-vkv7n0jn.js")]), c = await t(e);
79
+ let [{ importDmnDocument: t }, { outputArgumentName: s }, { aggregateTypeRef: r, isCollectAggregation: u, LIST_HIT_POLICIES: m }, { DmnHitPolicy: a }] = await Promise.all([import("./KieDmnMarshaller-6TTUU5B4-47q50gk4.js"), import("./DmnFactory-VWZOSZHH-jkpbxz3n.js"), import("./hitPolicyResult-4WDHTX4A-gk103w84.js"), import("./DmnModelTypes-ATR7FVKZ-jp35cecy.js")]), c = await t(e);
53
80
  if (c.status === "error")
54
81
  throw new $(c.reason);
55
82
  let y = c.document.definitions, p = y.drgElement ?? [], g = p.filter(q), _ = p.filter(H), E = (n, o) => {
@@ -73,6 +100,10 @@ async function U(e) {
73
100
  }, h = g.every((n) => !C(n) || !!n["@_name"]?.trim());
74
101
  return { definitions: y, decisions: g, declared: _, inputsFor: x, outputsOf: O, toKeyedOutput: f, keyable: h };
75
102
  }
103
+ async function X(e, t = false) {
104
+ let { decisions: s, inputsFor: r, outputsOf: u, toKeyedOutput: m, keyable: a } = await U(e), c = s.filter(C), y = t && a && c.length > 0, p = y ? c.map(m) : c.flatMap(u).filter((g, _, E) => E.findIndex((R) => R.name === g.name) === _);
105
+ return { inputs: r(), outputs: p, ...y ? { decisionKeyed: true } : {} };
106
+ }
76
107
  function I(e, t, s = new Set) {
77
108
  let r = e && !s.has(e) ? t.get(e) : undefined;
78
109
  if (!r)
@@ -157,8 +188,13 @@ async function se(e, t, s = false) {
157
188
  return { entryPoints: u, entryPointsContent: JSON.stringify({ $schema: "https://cloud.uipath.com/draft/2024-12/entry-point", $id: "entry-points.json", entryPoints: u }, null, 2), bindingContent: Z, unreadable: m, entryPointsChanged: JSON.stringify(t?.entryPoints) !== JSON.stringify(u) };
158
189
  }
159
190
  export {
191
+ j as DECISION_KEYED_SCHEMA_KEY,
160
192
  $ as UnreadableDmnError,
161
- se as buildBusinessRulePackagingFiles
193
+ B as asDecisionKeyedSchema,
194
+ se as buildBusinessRulePackagingFiles,
195
+ Y as flatOutputSchema,
196
+ X as readDmnArguments,
197
+ M as readDmnCallableUnits
162
198
  };
163
199
 
164
- //# debugId=BF9314EE8C4EAE0564756E2164756E21
200
+ //# debugId=FDDD7FA2DDE7E0DA64756E2164756E21
@@ -1,3 +1,5 @@
1
+ import"./tool-1de529jm.js";
2
+
1
3
  // ../../node_modules/open/index.js
2
4
  import process7 from "node:process";
3
5
  import path from "node:path";
@@ -546,6 +548,22 @@ var open = (target, options) => {
546
548
  target
547
549
  });
548
550
  };
551
+ var openApp = (name, options) => {
552
+ if (typeof name !== "string" && !Array.isArray(name)) {
553
+ throw new TypeError("Expected a valid `name`");
554
+ }
555
+ const { arguments: appArguments = [] } = options ?? {};
556
+ if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
557
+ throw new TypeError("Expected `appArguments` as Array type");
558
+ }
559
+ return baseOpen({
560
+ ...options,
561
+ app: {
562
+ name,
563
+ arguments: appArguments
564
+ }
565
+ });
566
+ };
549
567
  function detectArchBinary(binary) {
550
568
  if (typeof binary === "string" || Array.isArray(binary)) {
551
569
  return binary;
@@ -608,7 +626,9 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
608
626
  }));
609
627
  var open_default = open;
610
628
  export {
611
- open_default as default
629
+ apps,
630
+ open_default as default,
631
+ openApp
612
632
  };
613
633
 
614
- //# debugId=6F288C058A3A412164756E2164756E21
634
+ //# debugId=42C9AEC59ECC644E64756E2164756E21
@@ -1,3 +1,6 @@
1
+ import"./tool-7haj67tr.js";
2
+ import"./tool-1de529jm.js";
3
+
1
4
  // ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-ELRKNOGV.js
2
5
  var e = { add_column_aria: "Add column", add_input_column: "Add input column", add_output_column: "Add output column", add_rule: "Add rule", aggregation_count: "Count", aggregation_count_hint: "Counts the distinct values among the matches.", aggregation_label: "Aggregation", aggregation_list_output_hint: "Can't aggregate a list output.", aggregation_max: "Maximum", aggregation_max_hint: "Returns the largest matched output.", aggregation_min: "Minimum", aggregation_min_hint: "Returns the smallest matched output.", aggregation_none: "All", aggregation_none_hint: "Returns the matches as a list.", aggregation_numeric_only_hint: "Needs a number output.", aggregation_sum: "Sum", aggregation_sum_hint: "Adds the matched outputs together.", annotation_placeholder: "Name this rule…", apply_changes: "Apply changes", argument_dialog_cancel: "Cancel", argument_dialog_direction_in: "In", argument_dialog_direction_label: "Direction", argument_dialog_error_invalid: "Use a letter or underscore, then letters, numbers and underscores.", argument_dialog_error_taken: "Argument name already exists", argument_dialog_name_label: "Name", argument_dialog_save: "Save", argument_dialog_title: "Add input", argument_dialog_type_label: "Type", band_annotation: "Annotation", band_inputs: "Input", band_outputs: "Output", bottom_panel_collapse: "Collapse panel", bottom_panel_expand: "Expand panel", bottom_panel_maximize: "Maximize panel", bottom_panel_restore: "Restore panel", cell_aria: "{{column}}, rule {{index}}", clipboard_copy_failed: "Copy failed — the browser blocked clipboard access", column_kind_input: "Input", column_kind_output: "Output", column_moved: "Column moved from position {{from}} to {{to}}", column_panel_allowed_values: "Allowed values", column_panel_allowed_values_expression_hint: "Set in the file as a FEEL expression. Edit it in the XML tab, or pick another option above to replace it.", column_panel_allowed_values_hint: "Allowed values, comma-separated. Saved to the rule as the column constraint.", column_panel_allowed_values_inherited_hint: "Set by this output's data type. Pick List of values or Regex pattern to replace them for this output only.", column_panel_allowed_values_mode_expression: "FEEL expression", column_panel_allowed_values_mode_inherited: "From data type", column_panel_allowed_values_mode_list: "List of values", column_panel_allowed_values_mode_lookup: "Lookup table", column_panel_allowed_values_mode_none: "No restriction", column_panel_allowed_values_mode_regex: "Regex pattern", column_panel_allowed_values_placeholder: "e.g. Approved, Denied, Refer", column_panel_allowed_values_regex_hint: "Regular expression. The whole cell must match.", column_panel_allowed_values_regex_placeholder: "e.g. [A-Z]{2,3}", column_panel_expression: "Input expression", column_panel_expression_hint: "FEEL expression bound to this column", column_panel_expression_menu_add_argument: "Add input", column_panel_expression_menu_aria: "Input expression options", column_panel_expression_menu_clear: "Clear value", column_panel_expression_menu_header: "Use", column_panel_expression_menu_variables: "Variables", column_panel_expression_placeholder: "e.g. invoice.countryCode", column_panel_label: "Label", column_panel_output_name: "Output name", column_panel_output_name_path_hint: "Read at {{path}} — a single output is the decision's whole result", column_panel_title: "Column properties", column_panel_type: "Data type", column_panel_type_input_info: "Changing this data type does not change the type of the input argument bound to this column", column_rule_name: "Rule name", context_menu_aria: "Table actions", decision_table_aria: "Decision table", decision_table_properties_title: "Decision table properties", default_project_name: "Business rule", delete_column: "Delete column", delete_column_confirm_action: "Delete column", delete_column_confirm_body: "{{label}} has values in one or more rules. Deleting it removes the column and every cell in it.", delete_column_confirm_cancel: "Cancel", delete_column_confirm_title: "Delete this column?", delete_column_requires_output: "A decision table must have at least one output column.", delete_rule: "Delete rule", delete_rule_aria: "Delete rule {{index}}", drag_column_title: "Drag to reorder column", drag_row_title: "Drag to reorder rule", drd_add_decision: "Add decision", drd_add_element: "Add element", drd_add_input_data: "Add input data", drd_add_knowledge_model: "Add knowledge model", drd_add_knowledge_source: "Add knowledge source", drd_add_text_annotation: "Add text annotation", drd_annotation_edit_aria: "Edit annotation", drd_back_to_diagram: "Back to diagram", drd_category_title: "Decision requirements", drd_decision_unsupported: "This decision can't be opened in the decision table editor.", drd_delete_element: "Delete", drd_element_decision: "Decision", drd_element_input_data: "Input data", drd_element_knowledge_model: "Knowledge model", drd_element_knowledge_source: "Knowledge source", drd_element_text_annotation: "Text annotation", drd_logic_confirm_action: "Replace", drd_logic_confirm_cancel: "Cancel", drd_logic_confirm_dependents: "These decisions read part of this decision's result and will stop resolving: {{decisions}}.", drd_logic_confirm_description: "The current logic will be discarded and replaced with an empty {{kind}}. This cannot be undone.", drd_logic_confirm_title: "Replace this decision's logic?", drd_logic_decision_table: "Decision table", drd_logic_literal_expression: "Literal expression", drd_logic_none: "Not set", drd_logic_unsupported: "Unsupported expression", drd_menu_copy: "Copy", drd_menu_cut: "Cut", drd_menu_hide_grid: "Hide background grid", drd_menu_paste: "Paste", drd_menu_show_grid: "Show background grid", drd_menu_tidy_up: "Tidy up nodes", drd_menu_zoom_to_fit: "Zoom to fit", drd_organize: "Organize", drd_properties_description: "Description", drd_properties_description_hint: "Shown under the name on the diagram.", drd_properties_empty: "Select an element on the diagram to see its properties.", drd_properties_identifier: "Identifier", drd_properties_identifier_hint: "What expressions use to reach this element. It stays the same when you rename.", drd_properties_identifier_rename: "Rename identifier", drd_properties_kind: "Type", drd_properties_logic: "Logic", drd_properties_logic_hint: "How this decision works out its answer.", drd_properties_name: "Name", drd_properties_name_hint: "The name shown on the diagram. Expressions keep using the element's variable.", drd_properties_title: "Properties", drd_rename_identifier_body: "The identifier is what expressions use to reach this element. Renaming it updates every expression that reads it.", drd_rename_identifier_cancel: "Cancel", drd_rename_identifier_confirm: "Rename", drd_rename_identifier_error_invalid: "Use a letter or underscore, then letters, numbers and underscores.", drd_rename_identifier_error_taken: "Another element already uses this identifier.", drd_rename_identifier_impact_one: "{{count}} decision's table already reads this identifier and will be updated.", drd_rename_identifier_impact_other: "{{count}} decisions' tables already read this identifier and will be updated.", drd_rename_identifier_label: "New identifier", drd_rename_identifier_title: "Rename identifier", drd_toolbox_title: "Add to diagram", drd_zoom_in: "Zoom in", drd_zoom_out: "Zoom out", drd_zoom_to_fit: "Zoom to fit", empty_state_description: "Create a decision table to start authoring rules.", empty_state_new_project: "Create decision table", empty_state_title: "This business rule is empty", evaluate_tab: "Evaluate", execution_condition_false: "False", execution_condition_true: "True", execution_condition_value: "Evaluated against {{value}}", execution_rule_not_evaluated: "Not evaluated", execution_rule_not_reached: "Not evaluated — rule {{index}} already matched ({{hitPolicy}} hit policy)", executions_actions_menu_aria: "Debug run actions", executions_cancelled_description: "This run was stopped before it finished evaluating.", executions_cancelled_title: "Run stopped", executions_clear: "Clear debug runs", executions_clear_confirm_action: "Clear", executions_clear_confirm_cancel: "Cancel", executions_clear_confirm_description: "Every finished run leaves the list. A run still evaluating stays.", executions_clear_confirm_title: "Clear debug runs?", executions_empty_description: "Run debug from the toolbar to evaluate this rule.", executions_empty_title: "No debug runs yet", executions_header_title: "Debug runs", executions_list_aria: "Debug runs", executions_no_trace_description: "This run finished without recording a trace.", executions_no_trace_title: "No trace recorded", executions_preparing: "Preparing the rule…", executions_retry: "Retry", executions_run_label: "Run #{{sequence}}", executions_running: "Evaluating…", executions_status_cancelled: "Stopped", executions_status_failed: "Failed", executions_status_preparing: "Preparing", executions_status_running: "Evaluating", executions_status_succeeded: "Succeeded", executions_tab: "Executions", executions_trace_empty_description: "No spans are stored for this run.", executions_trace_empty_title: "Trace not available", executions_trace_loading: "Loading trace…", executions_trace_unreadable_title: "Could not read the trace", feel_type_boolean: "Boolean", feel_type_date: "Date", feel_type_date_hint: "Write a date as {{example}}", feel_type_date_time: "Date-time", feel_type_date_time_hint: "Write a date-time as {{example}}", feel_type_day_time_duration: "Day and time duration", feel_type_day_time_duration_hint: "Write days and time as {{example}}. Can't be compared with a year and month duration.", feel_type_number: "Number", feel_type_object: "Object", feel_type_string: "String", feel_type_time: "Time", feel_type_time_hint: "Write a time as {{example}}. The time zone after @ is optional.", feel_type_year_month_duration: "Year and month duration", feel_type_year_month_duration_hint: "Write years and months as {{example}}. Can't be compared with a day and time duration.", formula_bar_input_aria: "Selected cell value", formula_bar_no_selection: "No cell selected", formula_bar_placeholder: "Enter a value for this cell", hit_policy_any: "Any", hit_policy_any_hint: "Any number may match, but they must all give the same result.", hit_policy_collect: "Collect", hit_policy_collect_hint: "Returns every match — as a list, or aggregated.", hit_policy_first: "First", hit_policy_first_hint: "Stops at the first matching rule, in table order.", hit_policy_label: "Hit policy", hit_policy_output_order: "Output order", hit_policy_output_order_hint: "Returns every match, ordered by the outputs' allowed values.", hit_policy_priority: "Priority", hit_policy_priority_hint: "Matches the highest-ranked result, prioritized by the outputs' allowed values.", hit_policy_rule_order: "Rule order", hit_policy_rule_order_hint: "Returns every match, in the order the rules appear.", hit_policy_unique: "Unique", hit_policy_unique_hint: "Exactly one rule may match. Overlaps are errors.", input_cell_any_placeholder: "any", input_column_default: "Input {{index}}", insert_rule_here: "Insert row here", literal_expression_editor_label: "Decision expression", literal_expression_editor_readonly_label: "Decision expression, read only", literal_expression_placeholder: 'Write a FEEL expression, for example: if age > 60 then "high" else "low"', literal_expression_prettify: "Prettify", literal_expression_result_type: "Result type", literal_expression_result_type_none: "Not set", loading_document: "Loading the business rule…", menu_clear_column: "Clear column", menu_clear_contents: "Clear contents", menu_clear_rule: "Clear rule", menu_column_properties: "Column properties…", menu_copy: "Copy", menu_cut: "Cut", menu_duplicate_column: "Duplicate column", menu_duplicate_rule: "Duplicate rule", menu_edit_cell: "Edit", menu_insert_column_left: "Insert column left", menu_insert_column_right: "Insert column right", menu_insert_rule_above: "Insert rule above", menu_insert_rule_below: "Insert rule below", menu_move_down: "Move down", menu_move_left: "Move left", menu_move_right: "Move right", menu_move_up: "Move up", menu_paste: "Paste", menu_paste_insert_rules: "Paste and insert rules", menu_rename_annotation: "Rename annotation column", menu_rename_column: "Rename", output_column_default: "Output {{index}}", paste_clamped: "Pasted block trimmed to fit: dropped {{dropped}}", paste_clamped_and: "{{rows}} and {{columns}}", paste_clamped_columns_one: "{{count}} column", paste_clamped_columns_other: "{{count}} columns", paste_clamped_rows_one: "{{count}} row", paste_clamped_rows_other: "{{count}} rows", paste_hint: "Press Ctrl+V in the table to paste — the browser blocked reading the clipboard from the menu", promote: "Promote", promote_coming_soon: "Promoting a business rule is coming soon.", promote_failed: "This rule couldn't be opened as a decision graph. It is unchanged and still saved as a decision table.", promote_menu_title: "Migrate to a more powerful rule", promote_to_drd: "Decision requirements (DRD)", promote_to_drd_hint: "Complex · full DMN graph", properties_tab: "Properties", rename_column_aria: "Column name", reset_column_width: "Double-click or press Enter to reset width", resize_column_aria: "Resize {{label}} column. Use arrow keys to adjust, Enter to reset.", resize_properties_panel_aria: "Resize properties panel", result_type: "Returns {{type}}", result_type_context_one: "Context · {{count}} field", result_type_context_other: "Context · {{count}} fields", result_type_list: "List of {{type}}", rule_moved: "Rule moved from position {{from}} to {{to}}", rule_number_aria: "Rule {{index}}", rule_properties_title: "Rule properties", rule_toolbar_debug: "Run debug", rule_toolbar_debug_busy: "Debug run in progress", rule_toolbar_debug_unavailable: "Debug is unavailable right now", rule_toolbar_evaluations_soon: "Evaluations coming soon", save_failed: "Your latest changes couldn't be saved. They will be retried on your next edit — keep this tab open.", source_view_aria_label: "DMN source", source_view_notice: "Showing DMN source — this rule can't be opened in an editor yet. Edits here are saved exactly as written.", source_view_reason_invalid_xml: "Its XML isn't well-formed.", source_view_reason_lossy_xml: "It carries XML comments or processing instructions that the decision table editor can't keep.", source_view_reason_migration_failed: "It's a DMN 1.1 file that couldn't be migrated.", source_view_reason_unsafe_xml: "It declares a DOCTYPE, which this editor can't process.", source_view_reason_unsupported_profile: "It's outside what the decision table editor can open.", source_view_reason_unsupported_version: "Its DMN version isn't supported.", source_view_save_failed: "Your latest changes couldn't be saved. Apply again to retry.", table_diagnostics_hint_one: "{{count}} issue with this decision — open properties to fix it", table_diagnostics_hint_other: "{{count}} issues with this decision — open properties to fix them", table_meta: "{{inputs}} in · {{outputs}} out · {{rules}} rules", table_rename_aria: "Business rule name", tests_add: "Add test", tests_band_expected: "Expected output", tests_band_input: "Input", tests_col_name: "Test name", tests_col_result: "Result", tests_column_not_fillable: "This column's expression isn't a single variable, so it takes no test value.", tests_debug_matched: "matched Rule {{rules}}", tests_debug_no_match: "no rule matched", tests_debug_rules_changed: "matched rules are no longer in the table", tests_debug_trace_unavailable: "the rule engine didn't report which rule fired", tests_debugging: "Debugging", tests_default_name: "Test {{index}}", tests_delete: "Delete test", tests_drag_row_title: "Drag to reorder test", tests_empty_description: "Add a test to validate this rule.", tests_empty_title: "No tests yet", tests_error_missing_result: "The rule engine returned no result for this test.", tests_error_unrecognized_output_shape: "The rule engine returned an output shape we don't recognize (keys: {{keys}}).", tests_exit_debug: "Exit debug", tests_expected_received: "Expected {{expected}}, received {{received}}", tests_load_failed_description: "Reopen the file to try again.", tests_load_failed_title: "Tests couldn't be loaded", tests_loading: "Loading tests…", tests_menu_duplicate: "Duplicate test", tests_menu_insert_above: "Insert test above", tests_menu_insert_below: "Insert test below", tests_name_placeholder: "Name this test", tests_no_match_description: 'No tests match "{{query}}"', tests_no_match_title: "No matching tests", tests_passing: "{{passing}}/{{total}} passing", tests_paste_skipped_one: "{{count}} cell was left as it is — its column shows an expression, not a value.", tests_paste_skipped_other: "{{count}} cells were left as they are — their columns show expressions, not values.", tests_path_conflict: "This value and {{other}} can't both reach the rule engine — only one will.", tests_props_expected: "Expected output", tests_props_inputs: "Inputs", tests_props_result: "Result", tests_props_title: "Test data", tests_received: "received: {{value}}", tests_result_error: "Error", tests_result_fail: "Fail", tests_result_pass: "Pass", tests_result_running: "Running", tests_run: "Run test", tests_run_all: "Run all", tests_save_failed: "Your test changes couldn't be saved. They will be retried on your next edit — keep this tab open.", tests_search_aria: "Search tests", tests_search_placeholder: "Search tests...", tests_title: "Tests", tests_update_expected: "Update expected outputs with current outputs", validation_aggregation_result_type: "{{aggregation}} doesn't return {{typeRef}}, the type the decision declares", validation_collect_aggregation_type: "{{aggregation}} aggregation requires a number output, not {{typeRef}}", validation_column_type_mismatch: '"{{name}}" is declared as {{declared}}, but this column is typed {{column}}', validation_dangling_requirement: "This decision requires an input or decision that no longer exists", validation_decision_name_missing: "This decision has no name", validation_document_unreadable: "This file could not be read as a DMN decision table", validation_duplicate_input_data_name: '"{{name}}" is used by more than one input', validation_duplicate_output_name: 'Output name "{{name}}" is used by more than one column', validation_duplicate_rule: "This rule has the same inputs as another rule", validation_feel_lint: "{{message}}", validation_feel_syntax: "{{message}}", validation_input_data_name_invalid: '"{{name}}" is not a valid input name', validation_input_data_shadows_decision: `"{{name}}" is already the name of another decision's result. Delete this input, or rename it.`, validation_input_expression_missing: "This input column has no expression", validation_list_result_type: "This hit policy returns a list, but the decision declares {{typeRef}}. Editing the table clears the declared type.", validation_literal_expression_empty: "This decision has no expression, so it cannot be evaluated.", validation_literal_expression_type_missing: "Set a result type so callers know what this decision answers with.", validation_no_rules: "This table has no rules", validation_output_name_invalid: '"{{name}}" is not a valid output name', validation_output_name_missing: "This output column has no name — every output in a multi-output table must be named", validation_output_value_not_allowed: "{{value}} is not one of this output's allowed values", validation_output_value_unchecked_one: "A value that isn't a plain literal can't be checked against this output's allowed values; if it falls outside them, the decision fails", validation_output_value_unchecked_other: "{{count}} values that aren't plain literals can't be checked against this output's allowed values; if one falls outside them, the decision fails", validation_ranked_output_values_missing: "This hit policy ranks matches by allowed values; add them to at least one output", validation_ranked_output_values_single: "This hit policy ranks matches by the order of allowed values, but every ranked output lists only one entry, so every match ties and rule order decides. List the values in rank order", validation_rule_entry_count: "This rule's entries do not match the table's columns", validation_type_mismatch: "A {{literalType}} value does not match the {{columnType}} column type", validation_unknown_name: '"{{name}}" is not a known input or decision variable', validation_unreachable_rule: "This rule can never be reached — an earlier rule matches every input", variable_picker_empty: "No variables found", variable_picker_insert: "Insert variable", variable_picker_search_placeholder: "Search variables…", viewer_unsupported_notice: "This rule can't be shown as a decision table.", xml_error_apply_failed: "This document could not be applied. Check the XML and try again.", xml_error_invalid: "This is not well-formed XML.", xml_error_lossy: "Remove XML comments and processing instructions — they cannot be kept.", xml_error_migration_failed: "This DMN 1.1 document could not be migrated.", xml_error_uninitialized: "This document holds no decision to apply.", xml_error_unsafe: "Remove the DOCTYPE declaration.", xml_error_unsupported_profile: "Only a single decision table can be applied.", xml_error_unsupported_version: "This DMN version is not supported.", xml_tab: "XML", xml_unavailable: "This table can't be shown as XML right now. Your latest changes are still in the table." };
3
6
 
@@ -5,10 +8,10 @@ var e = { add_column_aria: "Add column", add_input_column: "Add input column", a
5
8
  var c = Object.assign(Object.create(null), e);
6
9
  var a = ({ messageKey: t, messageParams: n = {} }) => {
7
10
  let { count: o } = n;
8
- return ((typeof o == "number" ? c[`${t}_${o === 1 ? "one" : "other"}`] : undefined) ?? c[t] ?? t).replace(/\{\{\s*(\w+)\s*\}\}/g, (e, r) => Object.prototype.hasOwnProperty.call(n, r) ? String(n[r]) : e);
11
+ return ((typeof o == "number" ? c[`${t}_${o === 1 ? "one" : "other"}`] : undefined) ?? c[t] ?? t).replace(/\{\{\s*(\w+)\s*\}\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(n, r) ? String(n[r]) : e2);
9
12
  };
10
13
  export {
11
14
  a as translateDmnDiagnostic
12
15
  };
13
16
 
14
- //# debugId=A90A326496ABF7B964756E2164756E21
17
+ //# debugId=879824C48B3DDD3264756E2164756E21
package/dist/index.js CHANGED
@@ -1,16 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- Command
4
- } from "./tool-6rp0gx98.js";
3
+ metadata,
4
+ registerCommands
5
+ } from "./tool-cgmy94zt.js";
5
6
  import {
6
- metadata2,
7
- registerCommands2
8
- } from "./tool-hjbf9aay.js";
7
+ Command
8
+ } from "./tool-tkcx6png.js";
9
+ import"./tool-1de529jm.js";
9
10
 
10
11
  // src/index.ts
11
12
  var program = new Command;
12
- program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
13
- await registerCommands2(program);
13
+ program.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
14
+ await registerCommands(program);
14
15
  program.parse(process.argv);
15
16
 
16
- //# debugId=6AA0DD0944CC2D3B64756E2164756E21
17
+ //# debugId=5A4157118AD704D364756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./tool-epsr41wx.js";
3
+ } from "./tool-1de529jm.js";
4
4
 
5
5
  // ../../node_modules/jmespath/jmespath.js
6
6
  var require_jmespath = __commonJS(function(exports) {
@@ -1,3 +1,5 @@
1
+ import"./tool-1de529jm.js";
2
+
1
3
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
2
4
  function getDefaultExportFromCjs(x) {
3
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -3148,4 +3150,4 @@ export {
3148
3150
  types
3149
3151
  };
3150
3152
 
3151
- //# debugId=41DC6971B94BC54964756E2164756E21
3153
+ //# debugId=9FA8E718B2F80BEA64756E2164756E21
@@ -0,0 +1,46 @@
1
+ import {
2
+ createResourceBuilderServices,
3
+ exportResourceDefinitionAsync,
4
+ findCatalogEntityAsync,
5
+ getRemoteResourceClients,
6
+ getSolutionAuthContext,
7
+ readSpecEntryPoints,
8
+ toResourceReference
9
+ } from "./tool-2cky8jwp.js";
10
+ import"./tool-gdtpsdn7.js";
11
+ import"./tool-53w8skv5.js";
12
+ import"./tool-pm3ewdxc.js";
13
+ import {
14
+ ruleNotFound
15
+ } from "./tool-av4mmsef.js";
16
+ import"./tool-eymjx05p.js";
17
+ import {
18
+ RulesCommandError
19
+ } from "./tool-8qy8pkp4.js";
20
+ import"./tool-tkcx6png.js";
21
+ import"./tool-1de529jm.js";
22
+
23
+ // src/services/rule-catalog.ts
24
+ var BUSINESS_RULE_ENTITY_TYPE = "BusinessRule";
25
+ async function describeRuleAsync(name, folder) {
26
+ await getSolutionAuthContext({});
27
+ const { catalog, importer } = getRemoteResourceClients(await createResourceBuilderServices());
28
+ const entity = await findCatalogEntityAsync(catalog, { name, entityTypes: [BUSINESS_RULE_ENTITY_TYPE] }, (e) => e.entityName?.toLowerCase() === name.toLowerCase() && e.folderKey?.toLowerCase() === folder.key.toLowerCase());
29
+ if (!entity?.entityKey) {
30
+ throw ruleNotFound(name, folder);
31
+ }
32
+ const definition = await exportResourceDefinitionAsync(importer, toResourceReference(entity));
33
+ return readEntryPoints(definition?.spec, name);
34
+ }
35
+ function readEntryPoints(spec, name) {
36
+ const entryPoints = readSpecEntryPoints(spec);
37
+ if (!entryPoints) {
38
+ throw new RulesCommandError(`Business rule '${name}' has no argument contract on its resource.`, "configuration_error", "Redeploy the rule from its solution with 'uip solution publish' and 'uip solution deploy run' so its package carries entry-points.json. If it still has no contract, contact your tenant administrator.");
39
+ }
40
+ return entryPoints;
41
+ }
42
+ export {
43
+ describeRuleAsync
44
+ };
45
+
46
+ //# debugId=973D0BB53E2ADF1A64756E2164756E21
@@ -0,0 +1,14 @@
1
+ import {
2
+ RulesCommandError,
3
+ isJsonObject,
4
+ reportRulesFailure
5
+ } from "./tool-8qy8pkp4.js";
6
+ import"./tool-tkcx6png.js";
7
+ import"./tool-1de529jm.js";
8
+ export {
9
+ RulesCommandError,
10
+ isJsonObject,
11
+ reportRulesFailure
12
+ };
13
+
14
+ //# debugId=B037763673F7A89264756E2164756E21
@@ -1,32 +1,33 @@
1
- import {
2
- getAuthContext,
3
- PersonalWorkspacesApi,
4
- createApiClient
5
- } from "./tool-n1d88ryb.js";
6
- import {
7
- getFileSystem,
8
- catchError,
9
- logger
10
- } from "./tool-6rp0gx98.js";
11
1
  import {
12
2
  buildSolutionPackageFromDir,
13
3
  uploadOrOverwriteSolution
14
- } from "./tool-24mr6g8c.js";
15
- import {
16
- RulesCommandError2,
17
- isJsonObject2
18
- } from "./tool-rwp1skmf.js";
19
- import {
20
- assertOneFolderOption2,
21
- resolveRequiredFolder2
22
- } from "./tool-ketztpgf.js";
4
+ } from "./tool-2qj74g14.js";
23
5
  import {
24
6
  findSolutionFile,
25
7
  updateSolutionFile
26
- } from "./tool-q3c1bjyb.js";
8
+ } from "./tool-pm3ewdxc.js";
27
9
  import {
28
10
  readRulesProjectNameAsync
29
- } from "./tool-k2s349kn.js";
11
+ } from "./tool-mkn83w88.js";
12
+ import {
13
+ assertOneFolderOption,
14
+ resolveRequiredFolder
15
+ } from "./tool-av4mmsef.js";
16
+ import {
17
+ PersonalWorkspacesApi,
18
+ createApiClient,
19
+ getAuthContext
20
+ } from "./tool-eymjx05p.js";
21
+ import {
22
+ RulesCommandError,
23
+ isJsonObject
24
+ } from "./tool-8qy8pkp4.js";
25
+ import {
26
+ catchError,
27
+ getFileSystem,
28
+ logger
29
+ } from "./tool-tkcx6png.js";
30
+ import"./tool-1de529jm.js";
30
31
 
31
32
  // src/services/rules-engine-client.ts
32
33
  var DEBUG_EVALUATE_PATH = "/v1/business-rules/debug/evaluate";
@@ -63,7 +64,7 @@ async function postDebugEvaluate(config, request, timeoutSeconds) {
63
64
  signal: AbortSignal.timeout(timeoutSeconds * 1000)
64
65
  }));
65
66
  if (fetchError?.name === "TimeoutError") {
66
- throw new RulesCommandError2(`The rules engine did not answer within ${timeoutSeconds} seconds.`, "timeout", "Run the command again, or pass a larger --timeout.", "RetryLater");
67
+ throw new RulesCommandError(`The rules engine did not answer within ${timeoutSeconds} seconds.`, "timeout", "Run the command again, or pass a larger --timeout.", "RetryLater");
67
68
  }
68
69
  if (fetchError) {
69
70
  throw fetchError;
@@ -76,12 +77,12 @@ async function postDebugEvaluate(config, request, timeoutSeconds) {
76
77
  async function engineFailure(response, tenantName) {
77
78
  const text = await response.text().catch(() => "");
78
79
  if (response.status === 404 && /Service: businessrules not found in Organization/i.test(text)) {
79
- return new RulesCommandError2(`Business Rules is not enabled on tenant '${tenantName}'.`, "configuration_error", "Ask your UiPath contact to enable Business Rules for this tenant, or switch to a tenant that has it with 'uip login tenant set <tenant-name>'.");
80
+ return new RulesCommandError(`Business Rules is not enabled on tenant '${tenantName}'.`, "configuration_error", "Ask your UiPath contact to enable Business Rules for this tenant, or switch to a tenant that has it with 'uip login tenant set <tenant-name>'.");
80
81
  }
81
82
  const [, body] = catchError(() => JSON.parse(text));
82
- const error = isJsonObject2(body) && isJsonObject2(body.error) ? body.error : {};
83
+ const error = isJsonObject(body) && isJsonObject(body.error) ? body.error : {};
83
84
  if (error.code === "STUDIO_FORBIDDEN") {
84
- return new RulesCommandError2("Studio Web did not let the rules engine read the uploaded project.", "permission_denied", "Check in Studio Web that your account can open the uploaded solution.");
85
+ return new RulesCommandError("Studio Web did not let the rules engine read the uploaded project.", "permission_denied", "Check in Studio Web that your account can open the uploaded solution.");
85
86
  }
86
87
  const message = typeof error.message === "string" ? error.message : "The rules engine request failed.";
87
88
  return new RulesEngineHttpError(response.status, typeof error.code === "string" ? `${message} (${error.code})` : message);
@@ -89,7 +90,7 @@ async function engineFailure(response, tenantName) {
89
90
 
90
91
  // src/services/rules-debug-service.ts
91
92
  async function debugRuleProjectAsync(projectPath, options) {
92
- assertOneFolderOption2(options);
93
+ assertOneFolderOption(options);
93
94
  const inputs = [{ id: "1", data: await parseInput(options.inputs) }];
94
95
  const fs = getFileSystem();
95
96
  const projectDir = fs.path.resolve(projectPath);
@@ -114,7 +115,7 @@ async function debugRuleProjectAsync(projectPath, options) {
114
115
  }
115
116
  const project = upload.projects.find((p) => p.name === projectName);
116
117
  if (!project) {
117
- throw new RulesCommandError2(`Studio Web returned no project named '${projectName}' for the uploaded solution.`, "not_found", "Check that the project is listed in the solution's .uipx, then run the command again.");
118
+ throw new RulesCommandError(`Studio Web returned no project named '${projectName}' for the uploaded solution.`, "not_found", "Check that the project is listed in the solution's .uipx, then run the command again.");
118
119
  }
119
120
  logger.info(`Evaluating against Studio Web project ${project.id}...`);
120
121
  const response = await evaluateRuleDebugAsync({ ...config, folderKey }, { projectId: project.id, explain: options.explain, inputs }, options.timeout);
@@ -132,11 +133,11 @@ async function parseInput(raw) {
132
133
  const filePath = raw.startsWith("@") ? raw.slice(1) : undefined;
133
134
  const [readError, text] = filePath === undefined ? [undefined, raw] : await catchError(getFileSystem().readFile(filePath, "utf-8"));
134
135
  if (readError || text === null) {
135
- throw new RulesCommandError2(`Input file '${filePath}' could not be read: ${readError?.message ?? "file not found"}.`, "invalid_argument", "Pass --inputs as a JSON object or @file.json pointing at an existing file.");
136
+ throw new RulesCommandError(`Input file '${filePath}' could not be read: ${readError?.message ?? "file not found"}.`, "invalid_argument", "Pass --inputs as a JSON object or @file.json pointing at an existing file.");
136
137
  }
137
138
  const [parseError, parsed] = catchError(() => JSON.parse(text));
138
- if (parseError || !isJsonObject2(parsed)) {
139
- throw new RulesCommandError2(parseError ? `--inputs is not valid JSON: ${parseError.message}` : "--inputs must be a JSON object of input values.", "invalid_argument", `Pass --inputs '{"<input>": <value>}' or @file.json holding one such object.`);
139
+ if (parseError || !isJsonObject(parsed)) {
140
+ throw new RulesCommandError(parseError ? `--inputs is not valid JSON: ${parseError.message}` : "--inputs must be a JSON object of input values.", "invalid_argument", `Pass --inputs '{"<input>": <value>}' or @file.json holding one such object.`);
140
141
  }
141
142
  return parsed;
142
143
  }
@@ -146,14 +147,14 @@ function studioWebDesignerUrl(baseUrl, organizationName, projectId, solutionId)
146
147
  async function readRulesProjectName(projectDir) {
147
148
  const name = await readRulesProjectNameAsync(projectDir);
148
149
  if (!name) {
149
- throw new RulesCommandError2(`${projectDir}/project.uiproj has no Name.`, "invalid_argument", "Set Name in project.uiproj to the rules project's name, as 'uip rules init' writes it.");
150
+ throw new RulesCommandError(`${projectDir}/project.uiproj has no Name.`, "invalid_argument", "Set Name in project.uiproj to the rules project's name, as 'uip rules init' writes it.");
150
151
  }
151
152
  return name;
152
153
  }
153
154
  async function assertSolutionFolder(solutionDir) {
154
155
  const [, entries] = await catchError(getFileSystem().readdir(solutionDir));
155
156
  if (!entries?.some((entry) => entry.endsWith(".uipx"))) {
156
- throw new RulesCommandError2(`${solutionDir} holds no .uipx, so the rules project is not inside a solution.`, "invalid_argument", "Pass a rules project that sits directly inside its solution folder, as 'uip rules init' creates it.");
157
+ throw new RulesCommandError(`${solutionDir} holds no .uipx, so the rules project is not inside a solution.`, "invalid_argument", "Pass a rules project that sits directly inside its solution folder, as 'uip rules init' creates it.");
157
158
  }
158
159
  }
159
160
  async function loggedInContext(loginValidity) {
@@ -176,12 +177,12 @@ async function loggedInContext(loginValidity) {
176
177
  }
177
178
  async function evaluationFolderKey(options) {
178
179
  if (options.folderPath !== undefined || options.folderKey !== undefined) {
179
- return (await resolveRequiredFolder2(options)).key;
180
+ return (await resolveRequiredFolder(options)).key;
180
181
  }
181
182
  const api = await createApiClient(PersonalWorkspacesApi, {});
182
183
  const personal = await api.personalWorkspacesGetPersonalWorkspace();
183
184
  if (!personal?.key) {
184
- throw new RulesCommandError2("Could not find your personal workspace to run the rules engine in.", "invalid_argument", "Pass --folder-path <path> or --folder-key <key> to run in a folder you can read.");
185
+ throw new RulesCommandError("Could not find your personal workspace to run the rules engine in.", "invalid_argument", "Pass --folder-path <path> or --folder-key <key> to run in a folder you can read.");
185
186
  }
186
187
  return personal.key;
187
188
  }
@@ -189,4 +190,4 @@ export {
189
190
  debugRuleProjectAsync
190
191
  };
191
192
 
192
- //# debugId=D45024320EEC44A364756E2164756E21
193
+ //# debugId=176F4486C7DFBCBB64756E2164756E21
@@ -1,22 +1,25 @@
1
- import {
2
- getFileSystem,
3
- catchError
4
- } from "./tool-6rp0gx98.js";
5
- import"./tool-7fkrd618.js";
6
- import"./tool-rwp1skmf.js";
1
+ import"./tool-2qj74g14.js";
7
2
  import {
8
3
  prepareProjectLocation,
9
4
  tryRegisterProjectInParentSolution
10
- } from "./tool-q3c1bjyb.js";
5
+ } from "./tool-pm3ewdxc.js";
11
6
  import {
12
- ENTRY_POINTS_FILE,
13
7
  BINDINGS_FILE,
8
+ ENTRY_POINTS_FILE,
14
9
  buildRuleEntryPointsAsync
15
- } from "./tool-k2s349kn.js";
10
+ } from "./tool-mkn83w88.js";
11
+ import"./tool-8qy8pkp4.js";
12
+ import {
13
+ catchError,
14
+ getFileSystem
15
+ } from "./tool-tkcx6png.js";
16
+ import {
17
+ __require
18
+ } from "./tool-1de529jm.js";
16
19
 
17
20
  // src/services/project-artifacts.ts
18
21
  async function ensureProjectArtifacts(args) {
19
- const { addProjectArtifactsToSolutionAsync } = await import("./index-zecwgvg7.js");
22
+ const { addProjectArtifactsToSolutionAsync } = await import("./index-2hzp9b97.js");
20
23
  return addProjectArtifactsToSolutionAsync(args);
21
24
  }
22
25
 
@@ -26,7 +29,7 @@ var SEEDED_DMN_FILE = "Business rule.dmn";
26
29
  var formatJson = (value) => `${JSON.stringify(value, null, 2)}
27
30
  `;
28
31
  async function createSeededRuleFilesAsync(ruleName) {
29
- const { createNewBusinessRuleDmn } = await import("./constants-za5vbzp8.js");
32
+ const { createNewBusinessRuleDmn } = await import("./constants-9pa118cj.js");
30
33
  const dmn = createNewBusinessRuleDmn();
31
34
  const packaging = await buildRuleEntryPointsAsync([{ name: SEEDED_DMN_FILE, contents: dmn }], undefined, ruleName);
32
35
  return {
@@ -94,7 +97,8 @@ async function maybeGenerateProjectArtifacts(registration, projectName) {
94
97
  });
95
98
  }
96
99
  export {
100
+ createSeededRuleFilesAsync,
97
101
  rulesInitAsync
98
102
  };
99
103
 
100
- //# debugId=73D0149B38D31B8564756E2164756E21
104
+ //# debugId=8300AFD86C3DD0AD64756E2164756E21
@@ -1,17 +1,18 @@
1
1
  import {
2
- getFileSystem,
3
- catchError,
4
- extractErrorMessageSync
5
- } from "./tool-6rp0gx98.js";
2
+ BINDINGS_FILE,
3
+ ENTRY_POINTS_FILE,
4
+ buildRuleEntryPointsAsync,
5
+ readRuleProjectAsync
6
+ } from "./tool-mkn83w88.js";
6
7
  import {
7
- RulesCommandError2
8
- } from "./tool-rwp1skmf.js";
8
+ RulesCommandError
9
+ } from "./tool-8qy8pkp4.js";
9
10
  import {
10
- ENTRY_POINTS_FILE,
11
- BINDINGS_FILE,
12
- readRuleProjectAsync,
13
- buildRuleEntryPointsAsync
14
- } from "./tool-k2s349kn.js";
11
+ catchError,
12
+ extractErrorMessageSync,
13
+ getFileSystem
14
+ } from "./tool-tkcx6png.js";
15
+ import"./tool-1de529jm.js";
15
16
 
16
17
  // src/services/rules-refresh-service.ts
17
18
  async function refreshRuleProjectAsync(projectPath) {
@@ -21,7 +22,7 @@ async function refreshRuleProjectAsync(projectPath) {
21
22
  if (packaging.unreadable.length > 0) {
22
23
  const names = packaging.unreadable.map((rule) => rule.name).join(", ");
23
24
  const reasons = packaging.unreadable.map((rule) => `${rule.name}: ${extractErrorMessageSync(rule.error)}`).join(" ");
24
- throw new RulesCommandError2(`Could not read ${names}, so no package file was written. ${reasons}`, "invalid_argument", "Fix the .dmn file, or open the project in Studio Web to see what it rejects, then run 'uip rules refresh' again.");
25
+ throw new RulesCommandError(`Could not read ${names}, so no package file was written. ${reasons}`, "invalid_argument", "Fix the .dmn file, or open the project in Studio Web to see what it rejects, then run 'uip rules refresh' again.");
25
26
  }
26
27
  const bindingsPath = fs.path.join(project.projectDir, BINDINGS_FILE);
27
28
  const planned = [
@@ -62,4 +63,4 @@ export {
62
63
  refreshRuleProjectAsync
63
64
  };
64
65
 
65
- //# debugId=8C02B24DF8C203E864756E2164756E21
66
+ //# debugId=9DC9E1E1A7863AFA64756E2164756E21
@@ -1,10 +1,13 @@
1
- import"./tool-5xx6x8pe.js";
2
- import"./tool-2trg1fpx.js";
3
1
  import {
4
2
  ENTRY_POINTS_FILE,
5
- readRuleProjectAsync,
6
- buildRuleEntryPointsAsync
7
- } from "./tool-yv3t4gg5.js";
3
+ buildRuleEntryPointsAsync,
4
+ readRuleProjectAsync
5
+ } from "./tool-mkn83w88.js";
6
+ import"./tool-8qy8pkp4.js";
7
+ import"./tool-tkcx6png.js";
8
+ import {
9
+ __require
10
+ } from "./tool-1de529jm.js";
8
11
 
9
12
  // src/services/rules-validate-service.ts
10
13
  async function validateRuleProjectAsync(projectPath) {
@@ -37,10 +40,10 @@ async function validateDmnFileAsync(file) {
37
40
  { importDmnDocument },
38
41
  { UnreadableDmnError }
39
42
  ] = await Promise.all([
40
- import("./index-zdwhfpt1.js"),
41
- import("./index-7wc0g78k.js"),
42
- import("./index-gya2v502.js"),
43
- import("./index-we6zjs66.js")
43
+ import("./index-4c4exdzw.js"),
44
+ import("./index-t4mx1a5e.js"),
45
+ import("./index-34pj9f36.js"),
46
+ import("./index-fs1nd5ap.js")
44
47
  ]);
45
48
  const diagnostics = await validateDmnDocument(file.contents);
46
49
  const imported = diagnostics.some((d) => d.code === "DMN_DOCUMENT_UNREADABLE") ? await importDmnDocument(file.contents) : undefined;
@@ -57,4 +60,4 @@ export {
57
60
  validateRuleProjectAsync
58
61
  };
59
62
 
60
- //# debugId=4E55FD726F10B69064756E2164756E21
63
+ //# debugId=815CA3A34812F29264756E2164756E21