555e282cc4
ci / changelog_check (push) Waiting to run
ci / check_changes (push) Waiting to run
ci / build_mem0 (3.10) (push) Blocked by required conditions
ci / build_mem0 (3.11) (push) Blocked by required conditions
ci / build_mem0 (3.12) (push) Blocked by required conditions
CLI Node CI / lint (push) Waiting to run
CLI Node CI / test (20) (push) Waiting to run
CLI Node CI / test (22) (push) Waiting to run
CLI Node CI / build (push) Waiting to run
CLI Python CI / lint (push) Waiting to run
CLI Python CI / test (3.10) (push) Waiting to run
CLI Python CI / test (3.11) (push) Waiting to run
CLI Python CI / test (3.12) (push) Waiting to run
CLI Python CI / build (push) Waiting to run
openclaw checks / lint (push) Waiting to run
openclaw checks / test (20) (push) Waiting to run
openclaw checks / test (22) (push) Waiting to run
openclaw checks / build (push) Waiting to run
opencode-plugin checks / build (push) Waiting to run
pi-agent-plugin checks / lint (push) Waiting to run
pi-agent-plugin checks / test (20) (push) Waiting to run
pi-agent-plugin checks / test (22) (push) Waiting to run
pi-agent-plugin checks / build (push) Waiting to run
TypeScript SDK CI / check_changes (push) Waiting to run
TypeScript SDK CI / changelog_check (push) Blocked by required conditions
TypeScript SDK CI / build_ts_sdk (20) (push) Blocked by required conditions
TypeScript SDK CI / build_ts_sdk (22) (push) Blocked by required conditions
TypeScript SDK CI / integration_ts_sdk (20) (push) Blocked by required conditions
TypeScript SDK CI / integration_ts_sdk (22) (push) Blocked by required conditions
72 lines
1.4 KiB
TypeScript
72 lines
1.4 KiB
TypeScript
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",
|
|
];
|
|
|
|
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,
|
|
},
|
|
]);
|