@cline/core 0.0.78 → 0.0.79

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.
@@ -22,6 +22,8 @@ export interface HubEventLogOptions {
22
22
  retentionMs?: number;
23
23
  /** Hard cap on rows kept, oldest pruned first. Defaults to 200k. */
24
24
  maxRows?: number;
25
+ /** Cap on the database file size, oldest rows pruned first. Defaults to 64 MiB. */
26
+ maxTotalBytes?: number;
25
27
  }
26
28
  export interface HubEventLogScope {
27
29
  sessionId?: string;
@@ -35,6 +37,8 @@ export declare class HubEventLogStore {
35
37
  private readonly db;
36
38
  private readonly retentionMs;
37
39
  private readonly maxRows;
40
+ private readonly maxTotalBytes;
41
+ private appendedBytesSincePrune;
38
42
  private closed;
39
43
  constructor(options?: HubEventLogOptions);
40
44
  /**
@@ -46,7 +50,8 @@ export declare class HubEventLogStore {
46
50
  /** Events after `sequence`, oldest first, optionally scoped to a session. */
47
51
  listAfter(sequence: number, scope: HubEventLogScope, limit: number): HubEventEnvelope[];
48
52
  lastSequence(): number;
49
- /** Bound the log: drop rows past retention, then enforce the row cap. */
53
+ /** Bound the log: drop rows past retention, the row cap, and the size budget. */
50
54
  prune(now?: number): void;
55
+ private fileSizeBytes;
51
56
  close(): void;
52
57
  }