refactor(memory): remove unused session file exports · openclaw/openclaw@bdc46fa
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
File tree
packages/memory-host-sdk/src/host
| Original file line number | Diff line number | Diff line change |
|---|
@@ -217,13 +217,6 @@ function resolveSessionStoreTranscriptPath(
|
217 | 217 | return null; |
218 | 218 | } |
219 | 219 | |
220 | | -export function loadDreamingNarrativeTranscriptPathSetForSessionsDir( |
221 | | -sessionsDir: string, |
222 | | -): ReadonlySet<string> { |
223 | | -return loadSessionTranscriptClassificationForSessionsDir(sessionsDir) |
224 | | -.dreamingNarrativeTranscriptPaths; |
225 | | -} |
226 | | - |
227 | 220 | export function loadSessionTranscriptClassificationForSessionsDir( |
228 | 221 | sessionsDir: string, |
229 | 222 | ): SessionTranscriptClassification { |
@@ -493,17 +486,6 @@ function sanitizeSessionText(text: string, role: "user" | "assistant"): string |
|
493 | 486 | return normalized; |
494 | 487 | } |
495 | 488 | |
496 | | -export function extractSessionText( |
497 | | -content: unknown, |
498 | | -role: "user" | "assistant" = "assistant", |
499 | | -): string | null { |
500 | | -const rawText = collectRawSessionText(content); |
501 | | -if (rawText === null) { |
502 | | -return null; |
503 | | -} |
504 | | -return sanitizeSessionText(rawText, role); |
505 | | -} |
506 | | - |
507 | 489 | function parseSessionTimestampMs( |
508 | 490 | record: { timestamp?: unknown }, |
509 | 491 | message: { timestamp?: unknown }, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。