mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-18 12:08:52 +00:00
refactor: hide legacy session path helpers
This commit is contained in:
@@ -9,12 +9,14 @@ import {
|
||||
buildGroupDisplayName,
|
||||
createSqliteSessionTranscriptLocator,
|
||||
deriveSessionKey,
|
||||
resolveSessionFilePath,
|
||||
resolveSessionKey,
|
||||
resolveSessionTranscriptPath,
|
||||
resolveSessionTranscriptsDir,
|
||||
updateLastRoute,
|
||||
} from "./sessions.js";
|
||||
import {
|
||||
resolveSessionFilePath,
|
||||
resolveSessionTranscriptPath,
|
||||
resolveSessionTranscriptsDir,
|
||||
} from "./sessions/paths.js";
|
||||
import {
|
||||
deleteSessionEntry,
|
||||
listSessionEntries,
|
||||
|
||||
@@ -9,14 +9,8 @@ export {
|
||||
createSqliteSessionTranscriptLocator,
|
||||
isSqliteSessionTranscriptLocator,
|
||||
parseSqliteSessionTranscriptLocator,
|
||||
resolveSessionFilePath,
|
||||
resolveSessionTranscriptPath,
|
||||
resolveSessionTranscriptPathInDir,
|
||||
resolveSessionTranscriptsDir,
|
||||
resolveSessionTranscriptsDirForAgent,
|
||||
SAFE_SESSION_ID_RE,
|
||||
validateSessionId,
|
||||
type SessionFilePathOptions,
|
||||
} from "./sessions/paths.js";
|
||||
export * from "./sessions/reset.js";
|
||||
export * from "./sessions/session-key.js";
|
||||
|
||||
@@ -32,5 +32,4 @@ export {
|
||||
listSessionEntries,
|
||||
patchSessionEntry,
|
||||
upsertSessionEntry,
|
||||
resolveSessionFilePath,
|
||||
} from "./config/sessions.js";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { afterAll, beforeAll, beforeEach, describe, expect, it, type Mock } from "vitest";
|
||||
import { resolveSessionTranscriptPath } from "../config/sessions.js";
|
||||
import { resolveSessionTranscriptPath } from "../config/sessions/paths.js";
|
||||
import { replaceSqliteSessionTranscriptEvents } from "../config/sessions/transcript-store.sqlite.js";
|
||||
import { emitAgentEvent } from "../infra/agent-events.js";
|
||||
import { captureEnv } from "../test-utils/env.js";
|
||||
|
||||
Reference in New Issue
Block a user