refactor: trim gateway transcript helpers · openclaw/openclaw@9a814bc
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ export type CapturedCompactionCheckpointSnapshot = {
|
28 | 28 | leafId: string; |
29 | 29 | }; |
30 | 30 | |
31 | | -export type ForkedCompactionCheckpointTranscript = { |
| 31 | +type ForkedCompactionCheckpointTranscript = { |
32 | 32 | sessionId: string; |
33 | 33 | sessionFile: string; |
34 | 34 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ export type IndexedTranscriptEntry = {
|
14 | 14 | record: ParsedTranscriptRecord; |
15 | 15 | }; |
16 | 16 | |
17 | | -export type SessionTranscriptIndex = { |
| 17 | +type SessionTranscriptIndex = { |
18 | 18 | filePath: string; |
19 | 19 | mtimeMs: number; |
20 | 20 | size: number; |
@@ -64,10 +64,6 @@ function setCachedIndex(filePath: string, entry: CacheEntry): void {
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | |
67 | | -export function invalidateSessionTranscriptIndex(filePath: string): void { |
68 | | -transcriptIndexCache.delete(filePath); |
69 | | -} |
70 | | - |
71 | 67 | export function clearSessionTranscriptIndexCache(): void { |
72 | 68 | transcriptIndexCache.clear(); |
73 | 69 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。