import * as path from 'path';

function resolveOpenCodeDbPath() {
  const home = process.env.HOME || "";
  if (process.env.XDG_DATA_HOME) {
    return path.join(process.env.XDG_DATA_HOME, "opencode", "opencode.db");
  }
  if (process.platform === "darwin") {
    return path.join(home, "Library", "Application Support", "opencode", "opencode.db");
  }
  return path.join(home, ".local", "share", "opencode", "opencode.db");
}

export { resolveOpenCodeDbPath as r };
//# sourceMappingURL=opencode-db-path-DcfhJtJy.js.map
