Added Mem0 TS Library (#2270)

This commit is contained in:
Saket Aryan
2025-02-28 04:49:17 +05:30
committed by GitHub
parent ecff6315e7
commit d200691e9b
44 changed files with 5142 additions and 0 deletions

31
mem0-ts/tsup.config.ts Normal file
View File

@@ -0,0 +1,31 @@
import { defineConfig } from "tsup";
const external = [
"openai",
"@anthropic-ai/sdk",
"groq-sdk",
"uuid",
"pg",
"zod",
"sqlite3",
"@qdrant/js-client-rest",
"redis",
];
export default defineConfig([
{
entry: ["src/client/index.ts"],
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
external,
},
{
entry: ["src/oss/src/index.ts"],
outDir: "dist/oss",
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
external,
},
]);