@@ -63,15 +63,10 @@ function createPhysicalBudgetResult(params: {
6363 } ;
6464}
6565
66- export type SessionHistoryDiskBudgetInspection = {
67- diskBudget : SessionDiskBudgetSweepResult | null ;
68- wouldMutate : boolean ;
69- } ;
70-
7166/** Reports the same physical total enforce mode compares, without projecting logical row bytes. */
7267export async function inspectSqliteSessionHistoryDiskBudget (
7368 params : SessionHistoryDiskBudgetParams ,
74- ) : Promise < SessionHistoryDiskBudgetInspection > {
69+ ) : Promise < { diskBudget : SessionDiskBudgetSweepResult | null ; wouldMutate : boolean } > {
7570 const { highWaterBytes, maxDiskBytes } = params . maintenance ;
7671 if ( maxDiskBytes == null || highWaterBytes == null ) {
7772 return { diskBudget : null , wouldMutate : false } ;
@@ -107,7 +102,7 @@ export async function inspectSqliteSessionHistoryDiskBudget(
107102 return { diskBudget, wouldMutate : candidates . length > 0 } ;
108103}
109104
110- export function collectProtectedHistoricalSessionIds ( params : {
105+ function collectProtectedHistoricalSessionIds ( params : {
111106 database : OpenClawAgentDatabase ;
112107 storePath : string ;
113108} ) : Set < string > {
@@ -207,10 +202,6 @@ const budgetKickStateByStore = new Map<
207202 { lastCheckAt : number ; running : boolean ; pendingForce : boolean }
208203> ( ) ;
209204
210- export function resetSessionHistoryBudgetKicksForTests ( ) : void {
211- budgetKickStateByStore . clear ( ) ;
212- }
213-
214205/** Fire-and-forget budget pass from the ordinary entry-write maintenance seam. */
215206export function kickSessionHistoryDiskBudgetMaintenance ( params : {
216207 agentId ?: string ;
0 commit comments