@uipath/guardrails-tool 1.205.0-preview.276 → 1.206.0-preview.279

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.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @uipath/guardrails-tool
2
+
3
+ `uip` plugin for AI Trust Layer guardrails. It adds `uip guardrails`, which
4
+ manages bring-your-own guardrail (BYOG) configurations: a tenant-wide link
5
+ between a validator alias, a raw validator type (for example `pii_detection`)
6
+ and the Integration Service connection that serves it. This is the same data as
7
+ Admin -> AI Trust Layer -> Guardrails Configurations.
8
+
9
+ More: [docs/tools/guardrails.md](../../../docs/tools/guardrails.md).
10
+
11
+ ## Commands
12
+
13
+ | Command | Purpose |
14
+ | --- | --- |
15
+ | `uip guardrails byo-configurations list` | List the tenant's BYOG configurations, with connection details. |
16
+ | `uip guardrails byo-configurations list-validators --connection-id <id>` | List the validators a connection exposes. Each `Validator` value is a valid `--validator-type`. |
17
+ | `uip guardrails byo-configurations probe --connection-id <id> --validator-type <type>` | Test a connection/validator pair without saving anything. Exits 1 when the pair is unavailable. |
18
+ | `uip guardrails byo-configurations create --connection-id <id> --validator-name <name> --validator-type <type>` | Probe the pair, then save a configuration. Enabled by default; `--disabled` and `--fallback-on-ui-path` change that. |
19
+ | `uip guardrails byo-configurations update <configuration-id>` | Change the connection (`--connection-id`, probed first), fallback (`--fallback-on-ui-path` / `--no-fallback-on-ui-path`) or state (`--enabled` / `--disabled`). |
20
+ | `uip guardrails byo-configurations delete <configuration-id> --force` | Delete a configuration. Refuses without `--force`. |
21
+
22
+ `--validator-name` and `--validator-type` are fixed at creation. To change
23
+ them, delete the configuration and create it again.
24
+
25
+ ## Examples
26
+
27
+ ```bash
28
+ # Find a connection, then see which validators it offers
29
+ uip is connections list --all-folders
30
+ uip guardrails byo-configurations list-validators --connection-id <connection-id>
31
+
32
+ # Check the pair works, then save it
33
+ uip guardrails byo-configurations probe --connection-id <connection-id> --validator-type pii_detection
34
+ uip guardrails byo-configurations create --connection-id <connection-id> \
35
+ --validator-name my-pii-guardrail --validator-type pii_detection --fallback-on-ui-path
36
+
37
+ # Turn a configuration off, then remove it
38
+ uip guardrails byo-configurations update <configuration-id> --disabled
39
+ uip guardrails byo-configurations delete <configuration-id> --force
40
+ ```
41
+
42
+ ## Authentication
43
+
44
+ Run `uip login` first. Commands run against the tenant of the current login
45
+ and call the org-scoped Agents service (`agents_/api/designer/byog-guardrails`).
46
+ When the BYOG feature is off for the tenant, every command fails with
47
+ `ByoGuardrailsUnavailable`; contact UiPath support to turn it on.
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../../node_modules/open/index.js
4
2
  import process7 from "node:process";
5
3
  import path from "node:path";
@@ -548,22 +546,6 @@ var open = (target, options) => {
548
546
  target
549
547
  });
550
548
  };
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
- };
567
549
  function detectArchBinary(binary) {
568
550
  if (typeof binary === "string" || Array.isArray(binary)) {
569
551
  return binary;
@@ -626,9 +608,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
626
608
  }));
627
609
  var open_default = open;
628
610
  export {
629
- apps,
630
- open_default as default,
631
- openApp
611
+ open_default as default
632
612
  };
633
613
 
634
- //# debugId=2C63615B31AE54A364756E2164756E21
614
+ //# debugId=BDC9DE891180DAF464756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./tool-1de529jm.js";
3
+ } from "./tool-epsr41wx.js";
4
4
 
5
5
  // ../../../node_modules/jmespath/jmespath.js
6
6
  var require_jmespath = __commonJS(function(exports) {
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../../node_modules/js-yaml/dist/js-yaml.mjs
4
2
  function getDefaultExportFromCjs(x) {
5
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -3150,4 +3148,4 @@ export {
3150
3148
  types
3151
3149
  };
3152
3150
 
3153
- //# debugId=87463FE309AE7C9C64756E2164756E21
3151
+ //# debugId=C1B3553ECA3A832664756E2164756E21
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  return cached;
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
22
  if (mod && typeof mod === "object" || typeof mod === "function") {
23
23
  for (let key of __getOwnPropNames(mod))
24
24
  if (!__hasOwnProp.call(to, key))
@@ -32,8 +32,17 @@ var __toESM = (mod, isNodeMode, target) => {
32
32
  return to;
33
33
  };
34
34
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
35
+ var __exportCjs = (target, getters, setters) => {
36
+ for (var name in getters)
37
+ __defProp(target, name, {
38
+ get: getters[name],
39
+ set: setters[name],
40
+ enumerable: true,
41
+ configurable: true
42
+ });
43
+ };
35
44
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
45
 
37
- export { __toESM, __commonJS, __require };
46
+ export { __toESM, __commonJS, __exportCjs, __require };
38
47
 
39
- //# debugId=4A15A0D6FCDB684764756E2164756E21
48
+ //# debugId=6692E9B4C735B07364756E2164756E21