@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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",