mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-22 10:48:14 +00:00
refactor(memory): remove unused session file exports
This commit is contained in:
@@ -217,13 +217,6 @@ function resolveSessionStoreTranscriptPath(
|
||||
return null;
|
||||
}
|
||||
|
||||
export function loadDreamingNarrativeTranscriptPathSetForSessionsDir(
|
||||
sessionsDir: string,
|
||||
): ReadonlySet<string> {
|
||||
return loadSessionTranscriptClassificationForSessionsDir(sessionsDir)
|
||||
.dreamingNarrativeTranscriptPaths;
|
||||
}
|
||||
|
||||
export function loadSessionTranscriptClassificationForSessionsDir(
|
||||
sessionsDir: string,
|
||||
): SessionTranscriptClassification {
|
||||
@@ -493,17 +486,6 @@ function sanitizeSessionText(text: string, role: "user" | "assistant"): string |
|
||||
return normalized;
|
||||
}
|
||||
|
||||
export function extractSessionText(
|
||||
content: unknown,
|
||||
role: "user" | "assistant" = "assistant",
|
||||
): string | null {
|
||||
const rawText = collectRawSessionText(content);
|
||||
if (rawText === null) {
|
||||
return null;
|
||||
}
|
||||
return sanitizeSessionText(rawText, role);
|
||||
}
|
||||
|
||||
function parseSessionTimestampMs(
|
||||
record: { timestamp?: unknown },
|
||||
message: { timestamp?: unknown },
|
||||
|
||||
Reference in New Issue
Block a user