@cline/shared 0.0.68 → 0.0.69
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/index.browser.js +18 -18
- package/dist/index.js +34 -34
- package/dist/services/telemetry.d.ts +6 -1
- package/package.json +1 -1
|
@@ -11,6 +11,11 @@ export interface CaptureSdkErrorInput {
|
|
|
11
11
|
component: SdkTelemetryErrorComponent;
|
|
12
12
|
operation: string;
|
|
13
13
|
error: unknown;
|
|
14
|
+
/**
|
|
15
|
+
* A useful message derived while the caller still has domain-specific error
|
|
16
|
+
* context. The raw error remains the source of type, code, and status.
|
|
17
|
+
*/
|
|
18
|
+
errorMessage?: string;
|
|
14
19
|
severity?: SdkTelemetryErrorSeverity;
|
|
15
20
|
handled?: boolean;
|
|
16
21
|
context?: TelemetryProperties;
|
|
@@ -88,7 +93,7 @@ export declare function captureAgentUnexpectedReasoningTokens(telemetry: ITeleme
|
|
|
88
93
|
export declare function captureTaskLifecycleEvent(telemetry: ITelemetryService | undefined, input: CaptureTaskLifecycleEventInput): void;
|
|
89
94
|
export declare function captureSdkError(telemetry: ITelemetryService | undefined, input: CaptureSdkErrorInput): void;
|
|
90
95
|
export declare function buildSdkErrorProperties(input: CaptureSdkErrorInput): TelemetryProperties;
|
|
91
|
-
export declare function normalizeSdkError(error: unknown, messageLimit?: number): TelemetryProperties;
|
|
96
|
+
export declare function normalizeSdkError(error: unknown, messageLimit?: number, errorMessage?: string): TelemetryProperties;
|
|
92
97
|
export interface OpenTelemetryClientConfig {
|
|
93
98
|
/**
|
|
94
99
|
* Whether telemetry is enabled via OTEL_TELEMETRY_ENABLED
|