@uipath/common 1.203.0-preview.212 → 1.204.0-preview.211
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/formatter.d.ts
CHANGED
|
@@ -103,6 +103,13 @@ export declare class SuccessOutput {
|
|
|
103
103
|
Data: DataRecord | DataRecord[];
|
|
104
104
|
Pagination?: Pagination;
|
|
105
105
|
Instructions?: string;
|
|
106
|
+
/**
|
|
107
|
+
* A note for the caller that does not change the `Data` contract — e.g.
|
|
108
|
+
* why `--output-filter` returned nothing. Declared here because agents
|
|
109
|
+
* read the envelope and nothing else; `emitList` and the filter paths
|
|
110
|
+
* both set it.
|
|
111
|
+
*/
|
|
112
|
+
Warning?: string;
|
|
106
113
|
Log?: string;
|
|
107
114
|
constructor(code: string, data: DataRecord | DataRecord[]);
|
|
108
115
|
}
|
|
@@ -185,6 +192,14 @@ export type StructuredOutput = SuccessOutput | FailureOutput;
|
|
|
185
192
|
* with the exact same escaping the CLI applies on the wire.
|
|
186
193
|
*/
|
|
187
194
|
export declare function escapeNonAscii(jsonText: string): string;
|
|
195
|
+
/**
|
|
196
|
+
* PascalCase every key in a `Data` payload, the normalization
|
|
197
|
+
* {@link OutputFormatter.success} applies. `OutputFormatter.error` passes a
|
|
198
|
+
* failure's `Data` through as given, so a caller that builds failure `Data`
|
|
199
|
+
* from a foreign payload (a delegated CLI's JSON) uses this to keep the two
|
|
200
|
+
* envelopes' key casing the same.
|
|
201
|
+
*/
|
|
202
|
+
export declare function pascalCaseDataKeys(data: DataRecord | DataRecord[]): DataRecord | DataRecord[];
|
|
188
203
|
/**
|
|
189
204
|
* The text of a `{ message: "…" }` payload — a tool that returned prose rather
|
|
190
205
|
* than a record — or `null` for any other shape.
|
|
@@ -317,6 +332,9 @@ export declare namespace OutputFormatter {
|
|
|
317
332
|
*
|
|
318
333
|
* **Side-effect:** records the exit code through {@link setExitCode}, so a
|
|
319
334
|
* printed failure exits non-zero even when no `context.exit()` follows.
|
|
335
|
+
*
|
|
336
|
+
* `--output-filter` projects `Data` here as it does in {@link success};
|
|
337
|
+
* see {@link filterFailureData}.
|
|
320
338
|
*/
|
|
321
339
|
function error(data: FailureOutput): void;
|
|
322
340
|
/** Emit a list result. Always uses `Result: "Success"` — an empty list is not an error. */
|
|
@@ -333,6 +351,11 @@ export declare namespace OutputFormatter {
|
|
|
333
351
|
/**
|
|
334
352
|
* Format structured output to a string without writing to console.
|
|
335
353
|
* Useful when the caller needs the formatted string (e.g., Commander's formatHelp).
|
|
354
|
+
*
|
|
355
|
+
* This is the structured-help path, so it carries the filter note on the
|
|
356
|
+
* envelope like {@link success} does: a mistyped filter against `--help`
|
|
357
|
+
* is the same ambiguity as one against a list, and stdout is the only
|
|
358
|
+
* channel its reader has.
|
|
336
359
|
*/
|
|
337
360
|
function formatToString(data: StructuredOutput): string;
|
|
338
361
|
}
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./error-instructions";
|
|
|
13
13
|
export * from "./exit-code";
|
|
14
14
|
export * from "./guid";
|
|
15
15
|
export * from "./logger";
|
|
16
|
+
export * from "./mime-types";
|
|
16
17
|
export * from "./option-validators";
|
|
17
18
|
export * from "./orchestrator-urls";
|
|
18
19
|
export * from "./output-context";
|
|
@@ -30,6 +31,7 @@ export * from "./telemetry/command-terminal.js";
|
|
|
30
31
|
export { ConsoleTelemetryProvider } from "./telemetry/console-telemetry-provider.js";
|
|
31
32
|
export type { IContextStorage } from "./telemetry/context-storage.js";
|
|
32
33
|
export { getConfiguredTelemetrySessionId, getTelemetrySessionId, getTelemetrySessionSource, TELEMETRY_SESSION_ID_ENV, TELEMETRY_SESSION_SOURCE_PROPERTY, } from "./telemetry/session-id.js";
|
|
34
|
+
export * from "./telemetry/telemetry-dimensions.js";
|
|
33
35
|
export * from "./telemetry/telemetry-events.js";
|
|
34
36
|
export type { ITelemetryProvider } from "./telemetry/telemetry-provider.js";
|
|
35
37
|
export type { ITelemetryService, TelemetryContext, TelemetryProperties, } from "./telemetry/telemetry-service.js";
|