@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.
- package/dist/attachment-binding.d.ts +14 -0
- package/dist/error-graph.d.ts +37 -0
- package/dist/error-handler.d.ts +2 -8
- package/dist/error-handler.js +760 -0
- package/dist/formatter.d.ts +23 -0
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.js +353 -66
- package/dist/index.d.ts +3 -1
- package/dist/index.js +648 -111
- package/dist/local-permission-codes.d.ts +1 -0
- package/dist/mime-types.d.ts +8 -0
- package/dist/sdk-user-agent.js +130 -2
- package/dist/telemetry/command-attribution.d.ts +19 -3
- package/dist/telemetry/command-name.d.ts +77 -31
- package/dist/telemetry/command-terminal.d.ts +1 -1
- package/dist/telemetry/environment-info.d.ts +2 -2
- package/dist/telemetry/index.d.ts +1 -0
- package/dist/telemetry/index.js +227 -14
- package/dist/telemetry/session-id.d.ts +1 -1
- package/dist/telemetry/ship-succeeded.d.ts +13 -13
- package/dist/telemetry/telemetry-dimensions.d.ts +237 -0
- package/dist/telemetry/telemetry-events.d.ts +18 -6
- package/dist/trackedAction.d.ts +20 -7
- package/package.json +6 -2
package/dist/trackedAction.d.ts
CHANGED
|
@@ -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
|
|
63
|
-
* Walks up the parent chain, collects command names
|
|
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` → `"
|
|
68
|
-
* Example: `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.
|
|
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": "
|
|
87
|
+
"gitHead": "ea7fd32a02acccf14e8e83522e69101430627b83"
|
|
84
88
|
}
|