@uipath/context-grounding-tool 1.205.0-preview.284 → 1.206.0-preview.282

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,41 @@
1
+ # @uipath/context-grounding-tool
2
+
3
+ Adds `uip context-grounding` to the `uip` CLI: Context Grounding (ECS) indexes for RAG-grounded automations — create, list, ingest, search and delete indexes.
4
+
5
+ This tool is a thin bridge to the UiPath Python SDK. It owns two commands itself (`setup` and `help`); every other subcommand is forwarded as-is to the Python `uipath context-grounding` command group, and its output is streamed back. The Python SDK owns the grammar, options and help text of those commands, so run `--help` for what your installed SDK supports.
6
+
7
+ See also [docs/tools/context-grounding.md](../../docs/tools/context-grounding.md).
8
+
9
+ ## Commands
10
+
11
+ | Command | Purpose |
12
+ | --- | --- |
13
+ | `uip context-grounding setup [--force]` | Find a supported Python and check the `uipath` package is installed. Caches the result; `--force` re-detects. |
14
+ | `uip context-grounding help` | Show the Python tool's help. |
15
+ | `uip context-grounding <command> ...` | Forwarded to `uipath context-grounding <command>` (for example `list`, `create`, `retrieve`, `ingest`, `search`, `delete`). |
16
+
17
+ `auth` is blocked: use `uip login` instead. The bridge passes your `uip login` session to the Python process.
18
+
19
+ ## Examples
20
+
21
+ ```bash
22
+ uip context-grounding setup
23
+ uip context-grounding --help
24
+ uip context-grounding list --folder-key <folder-key> --output json
25
+ uip context-grounding create --index-name <name> --bucket-source <bucket> --folder-key <folder-key> --folder-path <folder-path> --output json
26
+ uip context-grounding ingest --index-name <name> --folder-key <folder-key>
27
+ uip context-grounding search --index-name <name> --query "<question>" --limit 5 --output json
28
+ uip context-grounding delete --index-name <name> --folder-key <folder-key> --confirm
29
+ ```
30
+
31
+ The forwarded examples above are the ones the e2e suite runs; the Python SDK may change them.
32
+
33
+ ## Output
34
+
35
+ `--output json` is passed to Python as `--format json` (JSON is the only format forwarded). Forwarded commands print the Python SDK's own payload and errors with its exit code — not the `uip` `Result`/`Code`/`Data` envelope. Only `setup` and the "Python not configured" error use the envelope.
36
+
37
+ ## Prerequisites
38
+
39
+ - Python 3.11–3.15 with the `uipath` package installed (`pip install uipath`). Set `PYTHON_TOOL_PYTHON_VERSIONS` to change the versions searched.
40
+ - Run `uip context-grounding setup` once. Until then, every forwarded command (and `--help`) fails with `ConfigError: Python not configured.`
41
+ - `uip login`. Pass `--folder-key`, not just `--folder-path`: with only a path, the SDK looks the key up through an endpoint that rejects client-credentials tokens with 403.
@@ -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=42C9AEC59ECC644E64756E2164756E21
614
+ //# debugId=6F288C058A3A412164756E2164756E21
package/dist/index.js CHANGED
@@ -1,15 +1,14 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  Command,
4
- metadata,
5
- registerCommands
6
- } from "./tool-yqtw0k69.js";
7
- import"./tool-1de529jm.js";
4
+ metadata2,
5
+ registerCommands2
6
+ } from "./tool-bq01y2yg.js";
8
7
 
9
8
  // src/index.ts
10
9
  var program = new Command;
11
- program.name(metadata.name).version(metadata.version).description(metadata.description);
12
- await registerCommands(program);
10
+ program.name(metadata2.name).version(metadata2.version).description(metadata2.description);
11
+ await registerCommands2(program);
13
12
  program.parse(process.argv);
14
13
 
15
- //# debugId=4FD485F395C9D57C64756E2164756E21
14
+ //# debugId=6144283B6637607F64756E2164756E21
@@ -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=9FA8E718B2F80BEA64756E2164756E21
3151
+ //# debugId=41DC6971B94BC54964756E2164756E21