@cline/core 0.0.80 → 0.0.81
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.
|
@@ -77,6 +77,15 @@ export declare function asPlainRecord(value: unknown): Record<string, JsonValue
|
|
|
77
77
|
export declare function extractSessionId(envelope: HubCommandEnvelope): string;
|
|
78
78
|
export declare function buildHubEvent(event: HubEventEnvelope["event"], payload?: Record<string, unknown>, sessionId?: string): HubEventEnvelope;
|
|
79
79
|
export declare function readHubSessionRecord(ctx: HubTransportContext, sessionId: string): Promise<HubSessionRecord | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Builds the snapshot that rides on hub events and command replies. It is a
|
|
82
|
+
* state notification — status, usage, model, workspace, checkpoint — and
|
|
83
|
+
* deliberately does NOT read the transcript: `snapshot.messages` here would
|
|
84
|
+
* put the entire conversation on every status flip, for every subscriber,
|
|
85
|
+
* and into the durable event log (observed in the wild as a 25GB hub process
|
|
86
|
+
* feeding a slow reader). Anything that needs messages fetches them with the
|
|
87
|
+
* `session.messages` command.
|
|
88
|
+
*/
|
|
80
89
|
export declare function readCoreSessionSnapshot(ctx: HubTransportContext, sessionId: string): Promise<CoreSessionSnapshot | undefined>;
|
|
81
90
|
export declare function ensureSessionState(ctx: HubTransportContext, sessionId: string, clientId: string, role: SessionParticipant["role"], options?: {
|
|
82
91
|
interactive?: boolean;
|