mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
refactor: trim gateway transcript helpers
This commit is contained in:
@@ -28,7 +28,7 @@ export type CapturedCompactionCheckpointSnapshot = {
|
||||
leafId: string;
|
||||
};
|
||||
|
||||
export type ForkedCompactionCheckpointTranscript = {
|
||||
type ForkedCompactionCheckpointTranscript = {
|
||||
sessionId: string;
|
||||
sessionFile: string;
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user