@cline/shared 0.0.93 → 0.0.94

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.
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Builds the `--telemetry-selfcheck` report (see index.ts). CI runs the
3
+ * packaged CLI and desktop backend with that flag and fails the publish unless the report
4
+ * shows telemetry enabled with a usable OTLP endpoint, so the checks here
5
+ * define what a release-grade build must prove.
6
+ */
7
+ export type TelemetrySelfcheckConfig = {
8
+ enabled?: boolean;
9
+ otlpEndpoint?: string;
10
+ logsExporter?: string;
11
+ metricsExporter?: string;
12
+ };
13
+ export type TelemetrySelfcheckReport = {
14
+ telemetry_selfcheck: true;
15
+ enabled: boolean;
16
+ /**
17
+ * The OTLP endpoint host when the endpoint is a usable http(s) URL,
18
+ * `""` when no endpoint was inlined, or `"invalid-endpoint-url"` when
19
+ * the endpoint cannot work at runtime (unparseable, hostless, or a
20
+ * non-http scheme the OTLP http/json exporters cannot speak).
21
+ */
22
+ otlp_endpoint_host: string;
23
+ logs_exporter: string;
24
+ metrics_exporter: string;
25
+ };
26
+ export declare function buildTelemetrySelfcheckReport(config: TelemetrySelfcheckConfig): TelemetrySelfcheckReport;
@@ -41,6 +41,8 @@ export declare const TASK_CANCELLED_EVENT = "task.cancelled";
41
41
  export declare const TASK_MAX_TOKENS_RECOVERY_EVENT = "task.max_tokens_recovery";
42
42
  export interface CaptureTaskLifecycleEventInput {
43
43
  event: string;
44
+ /** One issued model request; AI SDK transport retries share this identity. */
45
+ modelRequestId?: string;
44
46
  sessionId?: string;
45
47
  ulid?: string;
46
48
  agentId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.93",
3
+ "version": "0.0.94",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",