@cline/shared 0.0.82-nightly.1788488915 → 0.0.83

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.
@@ -225,9 +225,9 @@ export declare const ProviderCapabilitySchema: z.ZodEnum<{
225
225
  export type ProviderCapability = z.infer<typeof ProviderCapabilitySchema>;
226
226
  export declare const ProviderProtocolSchema: z.ZodEnum<{
227
227
  "openai-responses": "openai-responses";
228
+ "openai-chat": "openai-chat";
228
229
  anthropic: "anthropic";
229
230
  gemini: "gemini";
230
- "openai-chat": "openai-chat";
231
231
  "openai-r1": "openai-r1";
232
232
  "ai-sdk": "ai-sdk";
233
233
  }>;
@@ -121,6 +121,18 @@ export declare function captureTaskLifecycleEvent(telemetry: ITelemetryService |
121
121
  export declare function captureSdkError(telemetry: ITelemetryService | undefined, input: CaptureSdkErrorInput): boolean;
122
122
  export declare function buildSdkErrorProperties(input: CaptureSdkErrorInput): TelemetryProperties;
123
123
  export declare function normalizeSdkError(error: unknown, messageLimit?: number, errorMessage?: string): TelemetryProperties;
124
+ /**
125
+ * Marker property stamped onto a tracer provider whose span processors
126
+ * include a real OTLP exporter — the collector relay. Trace decisions must
127
+ * identify the relay explicitly instead of inferring it from "some recording
128
+ * tracer exists": a console-only tracer would otherwise be misclassified as
129
+ * a relay. A property on the provider instance (reached through the OTel API
130
+ * global) survives bundled module duplication, which a module-level registry
131
+ * would not.
132
+ */
133
+ export declare const OTLP_TRACE_RELAY_MARKER = "_clineOtlpTraceRelay";
134
+ export declare function markOtlpTraceRelayProvider(provider: object): void;
135
+ export declare function isOtlpTraceRelayProvider(provider: unknown): boolean;
124
136
  export interface OpenTelemetryClientConfig {
125
137
  /**
126
138
  * Whether telemetry is enabled via OTEL_TELEMETRY_ENABLED
@@ -141,6 +153,15 @@ export interface OpenTelemetryClientConfig {
141
153
  * Examples: "console", "otlp". When unset, no `TracerProvider` is registered.
142
154
  */
143
155
  tracesExporter?: string;
156
+ /**
157
+ * OTel resource `service.name` (default "cline"). Distinguishes processes
158
+ * that ship in the same binary — e.g. the CLI vs the detached hub daemon.
159
+ */
160
+ serviceName?: string;
161
+ /**
162
+ * OTel resource `service.version`.
163
+ */
164
+ serviceVersion?: string;
144
165
  /**
145
166
  * Protocol for OTLP exporters. SDK support is currently limited to "http/json".
146
167
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.82-nightly.1788488915",
3
+ "version": "0.0.83",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",