UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

28 lines (27 loc) • 806 B
import { i as resolveRealpathOrAbsolute } from "./boundary-path-C2gXEiXe.mjs"; import { o as resolveSessionFilePathCore } from "./paths-DvQ5AJvD.mjs"; import fs from "node:fs"; import path from "node:path"; //#region src/commands/doctor-session-sqlite-transcript-file.ts function resolveActiveSqliteTranscriptFile(e, t) { let n; try { n = resolveSessionFilePathCore(t.sessionId, t, { agentId: e.agentId, sessionsDir: path.dirname(e.storePath) }); } catch { return; } if (!n.endsWith(".jsonl")) return; try { if (!fs.statSync(n).isFile()) return; } catch { return; } const r = resolveRealpathOrAbsolute(path.dirname(e.storePath)); const i = resolveRealpathOrAbsolute(n); return path.dirname(i) === r ? i : void 0; } //#endregion export { resolveActiveSqliteTranscriptFile as t };