@uipath/context-grounding-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 +41 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +6 -7
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{tool-1de529jm.js → tool-epsr41wx.js} +12 -3
- package/dist/{tool-9mv2jakn.js → tool-f7hvjmym.js} +1670 -706
- package/dist/tool.js +6 -7
- package/package.json +2 -2
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
|
-
|
|
630
|
-
open_default as default,
|
|
631
|
-
openApp
|
|
611
|
+
open_default as default
|
|
632
612
|
};
|
|
633
613
|
|
|
634
|
-
//# debugId=
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
7
|
-
import"./tool-1de529jm.js";
|
|
4
|
+
metadata2,
|
|
5
|
+
registerCommands2
|
|
6
|
+
} from "./tool-f7hvjmym.js";
|
|
8
7
|
|
|
9
8
|
// src/index.ts
|
|
10
9
|
var program = new Command;
|
|
11
|
-
program.name(
|
|
12
|
-
await
|
|
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=
|
|
14
|
+
//# debugId=6144283B6637607F64756E2164756E21
|
|
@@ -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=
|
|
3151
|
+
//# debugId=41DC6971B94BC54964756E2164756E21
|
|
@@ -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=
|
|
48
|
+
//# debugId=6692E9B4C735B07364756E2164756E21
|