// ../memory/dist/mem-id.js
import { createHash } from "crypto";
var MEM_ID_PREFIX = "mem-";
var HEX_SUFFIX_LENGTH = 4;
function generateMemId(content) {
  const hash = createHash("sha256").update(content, "utf-8").digest("hex");
  const suffix = hash.slice(0, HEX_SUFFIX_LENGTH);
  return `${MEM_ID_PREFIX}${suffix}`;
}

export {
  generateMemId
};
