feat: add matrix channel plugin

This commit is contained in:
Peter Steinberger committed 2026-01-15 08:40:37 +00:00
1 parent f4bb5b381d
commit 725a6b71dc
51 files changed
+3986 -24

No files matched your search

+8 -2
View File
@@ -36,10 +36,16 @@ export function resolveDefaultSessionStorePath(agentId?: string): string {
export function resolveSessionTranscriptPath(
sessionId: string,
agentId?: string,
topicId?: number,
topicId?: string | number,
): string {
const safeTopicId =
typeof topicId === "string"
? encodeURIComponent(topicId)
: typeof topicId === "number"
? String(topicId)
: undefined;
const fileName =
topicId !== undefined ? `${sessionId}-topic-${topicId}.jsonl` : `${sessionId}.jsonl`;
safeTopicId !== undefined ? `${sessionId}-topic-${safeTopicId}.jsonl` : `${sessionId}.jsonl`;
return path.join(resolveAgentSessionsDir(agentId), fileName);
}