@cline/shared 0.0.68 → 0.0.69-nightly.1785813390

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.
@@ -123,6 +123,7 @@ export type EnterpriseStatusResponse = EnterpriseSyncResponse;
123
123
  export interface ProviderModel {
124
124
  id: string;
125
125
  name: string;
126
+ contextWindow?: number;
126
127
  supportsAttachments?: boolean;
127
128
  supportsVision?: boolean;
128
129
  supportsReasoning?: boolean;
@@ -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;
@@ -47,6 +52,11 @@ export interface CaptureTaskLifecycleEventInput {
47
52
  durationMs?: number;
48
53
  eventType?: string;
49
54
  error?: unknown;
55
+ /**
56
+ * Classification of `error` (e.g. context_window_exceeded), emitted as
57
+ * `error_class` alongside the normalized error fields.
58
+ */
59
+ errorClass?: string;
50
60
  messageLimit?: number;
51
61
  }
52
62
  export interface TelemetryMetadata {
@@ -88,7 +98,7 @@ export declare function captureAgentUnexpectedReasoningTokens(telemetry: ITeleme
88
98
  export declare function captureTaskLifecycleEvent(telemetry: ITelemetryService | undefined, input: CaptureTaskLifecycleEventInput): void;
89
99
  export declare function captureSdkError(telemetry: ITelemetryService | undefined, input: CaptureSdkErrorInput): void;
90
100
  export declare function buildSdkErrorProperties(input: CaptureSdkErrorInput): TelemetryProperties;
91
- export declare function normalizeSdkError(error: unknown, messageLimit?: number): TelemetryProperties;
101
+ export declare function normalizeSdkError(error: unknown, messageLimit?: number, errorMessage?: string): TelemetryProperties;
92
102
  export interface OpenTelemetryClientConfig {
93
103
  /**
94
104
  * 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-nightly.1785813390",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",