// src/chat-store/core.ts
var BULK_DELETE_MAX_THREADS = 200;
var ChatStoreInputError = class extends Error {
  constructor(message) {
    super(message);
    this.name = "ChatStoreInputError";
  }
};
function threadTitleFromMessage(message) {
  const firstLine = message.split("\n").find((l) => l.trim().length > 0)?.trim() ?? "";
  if (!firstLine) return "New Thread";
  return firstLine.length > 80 ? `${firstLine.slice(0, 79)}\u2026` : firstLine;
}

export {
  BULK_DELETE_MAX_THREADS,
  ChatStoreInputError,
  threadTitleFromMessage
};
//# sourceMappingURL=chunk-5EQCITY3.js.map