@cline/core 0.0.58 → 0.0.59

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,19 @@
1
+ import { type ITelemetryService } from "@cline/shared";
2
+ export interface HubDaemonTelemetry {
3
+ readonly telemetry: ITelemetryService;
4
+ /** Flushes pending batches and disposes the underlying provider. */
5
+ dispose(): Promise<void>;
6
+ }
7
+ /**
8
+ * Telemetry for the detached hub daemon process.
9
+ *
10
+ * The daemon hosts the `LocalRuntimeHost` that emits `task.conversation_turn`
11
+ * and `task.tokens` for every hub-backed session, so without its own handle
12
+ * those events are dropped entirely - sessions bill on the backend while
13
+ * reporting nothing to OTel.
14
+ *
15
+ * The daemon is long-lived and frequently starts before the user logs in (or
16
+ * outlives an account switch), so the cached Cline account id is re-resolved
17
+ * periodically rather than only once at startup.
18
+ */
19
+ export declare function createHubDaemonTelemetry(): HubDaemonTelemetry;