refactor: hide legacy session path helpers

This commit is contained in:
Peter Steinberger
2026-05-08 14:10:38 +01:00
parent e17c88257e
commit 7ffc77b4c1
4 changed files with 6 additions and 11 deletions

View File

@@ -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,

View File

@@ -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";

View File

@@ -32,5 +32,4 @@ export {
listSessionEntries,
patchSessionEntry,
upsertSessionEntry,
resolveSessionFilePath,
} from "./config/sessions.js";

View File

@@ -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";