@uipath/traces-tool 1.205.0-preview.277 → 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,39 @@
1
+ # @uipath/traces-tool
2
+
3
+ `uip` tool for LLM Observability traces. It adds the `uip traces` command
4
+ group: read the OpenTelemetry spans of a trace (or of a job), and create,
5
+ list, update and delete feedback on traces and spans. Page:
6
+ [docs/tools/traces.md](../../docs/tools/traces.md).
7
+
8
+ ## Commands
9
+
10
+ | Command | Purpose |
11
+ | --- | --- |
12
+ | `spans get [trace-id]` | All spans of a trace; or pass `--job-key` (with `--folder-path` / `--folder-key`) to find the job's trace |
13
+ | `feedback create` | Add thumbs-up (`--positive`) or thumbs-down (`--negative`) feedback to a trace or span |
14
+ | `feedback get [id]` | Get one feedback entry |
15
+ | `feedback list` | List feedback, filtered by agent, trace, span, status or sentiment |
16
+ | `feedback list detailed` | Same, with span context, category and date filters, sorting (max 200 items) |
17
+ | `feedback update [id]` | Change sentiment, comment, metadata or categories |
18
+ | `feedback delete [id]` | Delete a feedback entry |
19
+
20
+ `feedback create`, `update` and `delete` need `--folder-key <guid>`.
21
+ `--comment-file` and `--metadata-file` read from a file, or from stdin
22
+ with `-`.
23
+
24
+ ## Examples
25
+
26
+ ```bash
27
+ uip traces spans get <trace-id> --output json
28
+ uip traces spans get --job-key <job-key> --folder-path Shared
29
+ uip traces feedback create --trace-id <trace-id> --positive --comment "Correct answer" --folder-key <folder-key>
30
+ uip traces feedback list --trace-id <trace-id> --folder-key <folder-key>
31
+ uip traces feedback update <feedback-id> --negative --comment-file ./note.txt --folder-key <folder-key>
32
+ uip traces feedback delete <feedback-id> --folder-key <folder-key> --yes
33
+ ```
34
+
35
+ ## Authentication
36
+
37
+ Run `uip login` first. The tool calls the LLM Ops service
38
+ (`llmopstenant_`) of the logged-in tenant, and Orchestrator to look up a job
39
+ when `--job-key` is used.
@@ -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 node
2
2
  import {
3
3
  Command,
4
- metadata,
5
- registerCommands
6
- } from "./tool-xr0w4xdk.js";
7
- import"./tool-1de529jm.js";
4
+ metadata2,
5
+ registerCommands2
6
+ } from "./tool-dryfc00k.js";
8
7
 
9
8
  // src/index.ts
10
9
  var program = new Command;
11
- program.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
12
- await registerCommands(program);
10
+ program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
11
+ await registerCommands2(program);
13
12
  program.parse(process.argv);
14
13
 
15
- //# debugId=A9AF5D9DCB90B50764756E2164756E21
14
+ //# debugId=E617823BB0C0DA9964756E2164756E21
@@ -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