@uipath/common 1.203.0-preview.203 → 1.204.0-preview.206

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.
@@ -59,13 +59,26 @@ export declare const TELEMETRY_ARG_VALUE_WITHHELD = "<provided>";
59
59
  */
60
60
  export declare const TELEMETRY_ARG_VALUE_DEFAULTED = "<default>";
61
61
  /**
62
- * Derives a telemetry event name from the command hierarchy.
63
- * Walks up the parent chain, collects command names, strips the root,
64
- * and always prepends "uip" so all events share a uniform prefix.
65
- * Names are lowercase dot-separated, mirroring the CLI invocation.
62
+ * Derives the command path parts from the command hierarchy.
63
+ * Walks up the parent chain, collects command names and strips the root.
66
64
  *
67
- * Example: `uip maestro processes list` → `"uip.maestro.processes.list"`
68
- * Example: `uip login` → `"uip.login"`
65
+ * Example: `uip maestro processes list` → `["maestro", "processes", "list"]`
66
+ * Example: `uip login` → `["login"]`
67
+ *
68
+ * The parts are the raw material for two different strings, and they must not
69
+ * be confused. `commandTelemetryName` folds them into the flat
70
+ * `Cli.MaestroProcessesList` the convention wants in the telemetry NAME
71
+ * column; `commandInvocationPath` keeps them spaced as `uip maestro processes
72
+ * list`, which is what a human reads in an error hint and what the
73
+ * `CommandName` dimension and the attribution lookup are keyed on. Deriving the
74
+ * second from the first is what a dotted name used to allow and a flat one no
75
+ * longer does — `'Cli OrAssetsList --help'` is not a command anyone can run.
76
+ */
77
+ declare function deriveCommandParts(cmd: Command): string[];
78
+ /**
79
+ * @deprecated Use {@link deriveCommandParts} with
80
+ * {@link commandTelemetryName}. Kept as a compatibility export for consumers
81
+ * that used the previous helper.
69
82
  */
70
83
  declare function deriveCommandPath(cmd: Command): string;
71
84
  declare module "commander" {
@@ -73,4 +86,4 @@ declare module "commander" {
73
86
  trackedAction(context: CommandContext, fn: (...args: any[]) => Promise<void>, properties?: TelemetryProperties | ((...args: any[]) => TelemetryProperties)): this;
74
87
  }
75
88
  }
76
- export { deriveCommandPath };
89
+ export { deriveCommandParts, deriveCommandPath };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/common",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.203.0-preview.203",
5
+ "version": "1.204.0-preview.206",
6
6
  "description": "Common infrastructure needed by uip tools.",
7
7
  "repository": {
8
8
  "type": "git",
@@ -29,6 +29,10 @@
29
29
  "types": "./dist/catch-error.d.ts",
30
30
  "default": "./dist/catch-error.js"
31
31
  },
32
+ "./error-handler": {
33
+ "types": "./dist/error-handler.d.ts",
34
+ "default": "./dist/error-handler.js"
35
+ },
32
36
  "./entity-name-rules": {
33
37
  "types": "./dist/entity-name-rules.d.ts",
34
38
  "default": "./dist/entity-name-rules.js"
@@ -80,5 +84,5 @@
80
84
  "mihaigirleanu",
81
85
  "vlad-uipath"
82
86
  ],
83
- "gitHead": "a10661bf5ec19ddd6c628ed7bb1db55f721a6027"
87
+ "gitHead": "ea7fd32a02acccf14e8e83522e69101430627b83"
84
88
  }