openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 631 B
JavaScript
import { s as resolveOpenClawStateSqliteDir } from "./openclaw-state-db-CTUHxhwv.js";
import { u as normalizeAgentId } from "./session-key-BsbwBJwv.js";
import path from "node:path";
//#region src/state/openclaw-agent-db.paths.ts
/** Resolve the SQLite file for one normalized agent id. */
function resolveOpenClawAgentSqlitePath(options) {
const agentId = normalizeAgentId(options.agentId);
return path.resolve(options.path ?? path.join(path.dirname(resolveOpenClawStateSqliteDir(options.env ?? process.env)), "agents", agentId, "agent", "openclaw-agent.sqlite"));
}
//#endregion
export { resolveOpenClawAgentSqlitePath as t };