Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

1.4 KB
Raw Blame
import { defineConfig } from "tsup";
import pkg from "./package.json";

const external = [
  "openai",
  "@anthropic-ai/sdk",
  "@aws-sdk/client-neptune-graph",
  "@aws-sdk/client-s3vectors",
  "@mochow/mochow-sdk-node",
  "groq-sdk",
  "cohere-ai",
  "@huggingface/transformers",
  "zeroentropy",
  "uuid",
  "pg",
  "zod",
  "better-sqlite3",
  "cassandra-driver",
  "@pinecone-database/pinecone",
  "@qdrant/js-client-rest",
  "redis",
  "iovalkey",
  "ollama",
  "@google/genai",
  "@google-cloud/aiplatform",
  "@mistralai/mistralai",
  "@supabase/supabase-js",
  "@upstash/vector",
  "@zilliz/milvus2-sdk-node",
  "@aws-sdk/client-bedrock-runtime",
  "@azure/search-documents",
  "@azure/identity",
  "cloudflare",
  "@cloudflare/workers-types",
  "@databricks/sql",
  "@langchain/core",
  "fastembed",
  "compromise",
  "natural",
  "mysql2",
  "@turbopuffer/turbopuffer",
  "mongodb",
  "@opensearch-project/opensearch",
  "@elastic/elasticsearch",
  "chromadb",
  "weaviate-client",
  "oracledb",
];

const define = {
  __MEM0_SDK_VERSION__: JSON.stringify(pkg.version),
};

export default defineConfig([
  {
    entry: ["src/client/index.ts"],
    format: ["cjs", "esm"],
    dts: true,
    sourcemap: true,
    external,
    define,
  },
  {
    entry: ["src/oss/src/index.ts"],
    outDir: "dist/oss",
    format: ["cjs", "esm"],
    dts: true,
    sourcemap: true,
    external,
    define,
  },
]);