From 9a814bcec242803ef253682b434502547eca4fd4 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 04:13:33 +0100 Subject: [PATCH] refactor: trim gateway transcript helpers --- src/gateway/session-compaction-checkpoints.ts | 2 +- src/gateway/session-transcript-index.fs.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gateway/session-compaction-checkpoints.ts b/src/gateway/session-compaction-checkpoints.ts index 3c5753d6483..ccef53e7f85 100644 --- a/src/gateway/session-compaction-checkpoints.ts +++ b/src/gateway/session-compaction-checkpoints.ts @@ -28,7 +28,7 @@ export type CapturedCompactionCheckpointSnapshot = { leafId: string; }; -export type ForkedCompactionCheckpointTranscript = { +type ForkedCompactionCheckpointTranscript = { sessionId: string; sessionFile: string; }; diff --git a/src/gateway/session-transcript-index.fs.ts b/src/gateway/session-transcript-index.fs.ts index 7fb7d93b7f2..38a5228e2e9 100644 --- a/src/gateway/session-transcript-index.fs.ts +++ b/src/gateway/session-transcript-index.fs.ts @@ -14,7 +14,7 @@ export type IndexedTranscriptEntry = { record: ParsedTranscriptRecord; }; -export type SessionTranscriptIndex = { +type SessionTranscriptIndex = { filePath: string; mtimeMs: number; size: number; @@ -64,10 +64,6 @@ function setCachedIndex(filePath: string, entry: CacheEntry): void { } } -export function invalidateSessionTranscriptIndex(filePath: string): void { - transcriptIndexCache.delete(filePath); -} - export function clearSessionTranscriptIndexCache(): void { transcriptIndexCache.clear(); }