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.

(ts-sdk-update): Update for TypeScript SDK v2.2. (#3865)

Saket Aryan417ebffadd35
diff --git a/docs/changelog.mdx b/docs/changelog.mdx
index 1d52ad602..149788636 100644
--- a/docs/changelog.mdx
+++ b/docs/changelog.mdx
@@ -682,6 +682,21 @@ mode: "wide"
<Tab title="TypeScript">
+<Update label="2025-12-29" description="v2.2.0">
+
+**New Features:**
+- **Vector Stores:** Added Azure AI Search vector store support
+
+**Improvements:**
+- **Config:** Fixed embedder config schema to support `embeddingDims` and `url` parameters
+- **Graph Memory:** Replaced hardcoded LLM provider with provider from configuration
+
+**Bug Fixes:**
+- **Embedders:** Fixed hardcoded `embeddingDims` values in embedders (OpenAI, Ollama, Google, Azure)
+- **Build:** Fixed TypeScript build errors
+
+</Update>
+
<Update label="2025-09-04" description="v2.1.38">
**New Features:**
- **Client:** Added `metadata` param to `update` method.
diff --git a/mem0-ts/package.json b/mem0-ts/package.json
index d1140f28e..7f47def4f 100644
--- a/mem0-ts/package.json
+++ b/mem0-ts/package.json
@@ -1,6 +1,6 @@
{
"name": "mem0ai",
- "version": "2.1.38",
+ "version": "2.2.0",
"description": "The Memory Layer For Your AI Apps",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/mem0-ts/pnpm-lock.yaml b/mem0-ts/pnpm-lock.yaml
index a07a99316..b0af9d6ec 100644
--- a/mem0-ts/pnpm-lock.yaml
+++ b/mem0-ts/pnpm-lock.yaml
@@ -10,6 +10,12 @@ importers:
"@anthropic-ai/sdk":
specifier: ^0.40.1
version: 0.40.1([email protected])
+ "@azure/identity":
+ specifier: ^4.0.0
+ version: 4.13.0
+ "@azure/search-documents":
+ specifier: ^12.0.0
+ version: 12.2.0
"@cloudflare/workers-types":
specifier: ^4.20250504.0
version: 4.20250606.0
@@ -122,6 +128,104 @@ packages:
integrity: sha512-DJMWm8lTEM9Lk/MSFL+V+ugF7jKOn0M2Ujvb5fN8r2nY14aHbGPZ1k6sgjL+tpJ3VuOGJNG+4R83jEpOuYPv8w==,
}
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==,
+ }
+ engines: { node: ">=18.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-ykRMW8PjVAn+RS6ww5cmK9U2CyH9p4Q88YJwvUslfuMmN98w/2rdGRLPqJYObapBCdzBVeDgYWdJnFPFb7qzpg==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-Nh5PhEOeY6PrnxNPsEHRr9eimxLwgLlpmguQaHKBinFYA/RU9+kOYVOQqOrTsCL+KSxrLLl1gD8Dk5BFW/7l/w==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-az9BkXND3/d5VgdRRQVkiJb2gOmDU8Qcq4GvjtBmDICNiQ9udFmDk4ZpSB5Qq1OmtDJGlQAfBaS4palFsazQ5g==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-YKWi9YuCU04B55h25cnOYZHxXYtEvQEbKST5vqRga7hWY9ydd3FZHdeQF8pyh+acWZvppw13M/LMGx0LABUVMA==,
+ }
+ engines: { node: ">=18.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-MzHym+wOi8CLUlKCQu12de0nwcq9k9Kuv43j4Wa++CsCpJwps2eeBQwD2Bu8snkxTtDKDx4GwjuR9E8yC8LNrg==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-9MWKevR7Hz8kNzzPLfX4EAtGM2b8mr50HPDBvio96bURP/9C+HjdH3sBlLSNNrvRAr5/k/svoH457gB5IKpmwQ==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-XPArKLzsvl0Hf0CaGyKHUyVgF7oDnhKoP85Xv6M4StF/1AhfORhZudHtOyf2s+FcbuQ9dPRAjB8J2KvRRMUK2A==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-uWC0fssc+hs1TGGVkkghiaFkkS7NkTxfnCH+Hdg+yTehTpMcehpok4PgUKKdyCH+9ldu6FhiHRv84Ntqj1vVcw==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==,
+ }
+ engines: { node: ">=20.0.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-bZ8Pta6YAbdd0o0PEaL1/geBsPrLEnyY/RDWqvF1PP9RUH8EMLvUMGoZFYS6jSlUan6KZ9IMTLCnwpWWpQRK/w==,
+ }
+ engines: { node: ">=0.8.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-shSDU7Ioecya+Aob5xliW9IGq1Ui8y4EVSdWGyI1Gbm4Vg61WpP95LuzcY214/wEjSn6w4PZYD4/iVldErHayQ==,
+ }
+ engines: { node: ">=0.8.0" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-lvuAwsDpPDE/jSuVQOBMpLbXuVuLsPNRwWCyK3/6bPlBk0fGWegqoZ0qjZclMWyQ2JNvIY3vHY7hoFmFmFQcOw==,
+ }
+ engines: { node: ">=16" }
+
+ "@azure/[email protected]":
+ resolution:
+ {
+ integrity: sha512-4+Qw+qaGqnkdUCq/vEFzk/bkROogTvdbPb1fmI8poxNfDDN1q2WHxBmhI7CYwesrBj1yXC4i5E0aISBxZqZi0g==,
+ }
+ engines: { node: ">=20.0.0" }
+
resolution:
{
@@ -1348,6 +1452,13 @@ packages:
integrity: sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==,
}
+ "@typespec/[email protected]":
+ resolution:
+ {
+ integrity: sha512-IlqQ/Gv22xUC1r/WQm4StLkYQmaaTsXAhUVsNE0+xiyf0yRFiH5++q78U3bw6bLKDCTmh0uqKB9eG9+Bt75Dkg==,
+ }
+ engines: { node: ">=20.0.0" }
+
resolution:
{
@@ -1678,6 +1789,13 @@ packages:
integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==,
}
+ resolution:
+ {
+ integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==,
+ }
+ engines: { node: ">=18" }
+
resolution:
{
@@ -2027,6 +2145,27 @@ packages:
}
engines: { node: ">=0.10.0" }
+ resolution:
+ {
+ integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==,
+ }
+ engines: { node: ">=18" }
+
+ resolution:
+ {
+ integrity: sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==,
+ }
+ engines: { node: ">=18" }
+
+ resolution:
+ {
+ integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==,
+ }
+ engines: { node: ">=12" }
+
resolution:
{
@@ -2268,6 +2407,13 @@ packages:
integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==,
}
+ resolution:
+ {
+ integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==,
+ }
+ engines: { node: ">=0.8.x" }
+
resolution:
{
@@ -2719,6 +2865,13 @@ packages:
}
engines: { node: ">= 6" }
+ resolution:
+ {
+ integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==,
+ }
+ engines: { node: ">= 14" }
+
resolution:
{
@@ -2852,6 +3005,14 @@ packages:
}
engines: { node: ">= 0.4" }
+ resolution:
+ {
+ integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==,
+ }
+ engines: { node: ^12.20.0 || ^14.13.1 || >=16.0.0 }
+ hasBin: true
+
resolution:
{
@@ -2880,6 +3041,14 @@ packages:
}
engines: { node: ">=0.10.0" }
+ resolution:
+ {
+ integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==,
+ }
+ engines: { node: ">=14.16" }
+ hasBin: true
+
resolution:
{
@@ -2906,6 +3075,13 @@ packages:
}
engines: { node: ">=8" }
+ resolution:
+ {
+ integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==,
+ }
+ engines: { node: ">=16" }
+
resolution:
{
@@ -3248,18 +3424,37 @@ packages:
engines: { node: ">=6" }
hasBin: true
+ resolution:
+ {
+ integrity: sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==,
+ }
+ engines: { node: ">=12", npm: ">=6" }
+
resolution:
{
integrity: sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==,
}
+ resolution:
+ {
+ integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==,
+ }
+
resolution:
{
integrity: sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==,
}
+ resolution:
+ {
+ integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==,
+ }
+
resolution:
{
@@ -3325,12 +3520,54 @@ packages:
}
engines: { node: ">=8" }
+ resolution:
+ {
+ integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==,
+ }
+
+ resolution:
+ {
+ integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==,
+ }
+
+ resolution:
+ {
+ integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==,
+ }
+
+ resolution:
+ {
+ integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==,
+ }
+
+ resolution:
+ {
+ integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==,
+ }
+
+ resolution:
+ {
+ integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==,
+ }
+
resolution:
{
integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==,
}
+ resolution:
+ {
+ integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==,
+ }
+
resolution:
{
@@ -3788,6 +4025,13 @@ packages:
}
engines: { node: ">=6" }
+ resolution:
+ {
+ integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==,
+ }
+ engines: { node: ">=18" }
+
resolution:
{
@@ -4390,6 +4634,13 @@ packages:
}
engines: { node: ">= 18" }
+ resolution:
+ {
+ integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==,
+ }
+ engines: { node: ">=18" }
+
resolution:
{
@@ -5069,6 +5320,13 @@ packages:
}
hasBin: true
+ resolution:
+ {
+ integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==,
+ }
+ hasBin: true
+
resolution:
{
@@ -5208,6 +5466,13 @@ packages:
utf-8-validate:
optional: true
+ resolution:
+ {
+ integrity: sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==,
+ }
+ engines: { node: ">=18" }
+
resolution:
{
@@ -5294,6 +5559,116 @@ snapshots:
transitivePeerDependencies:
- encoding
+ "@azure/[email protected]":
+ dependencies:
+ tslib: 2.8.1
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/abort-controller": 2.1.2
+ "@azure/core-util": 1.13.1
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/abort-controller": 2.1.2
+ "@azure/core-auth": 1.10.1
+ "@azure/core-rest-pipeline": 1.22.2
+ "@azure/core-tracing": 1.3.1
+ "@azure/core-util": 1.13.1
+ "@azure/logger": 1.3.0
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/abort-controller": 2.1.2
+ "@azure/core-client": 1.10.1
+ "@azure/core-rest-pipeline": 1.22.2
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ tslib: 2.8.1
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/abort-controller": 2.1.2
+ "@azure/core-auth": 1.10.1
+ "@azure/core-tracing": 1.3.1
+ "@azure/core-util": 1.13.1
+ "@azure/logger": 1.3.0
+ "@typespec/ts-http-runtime": 0.3.2
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ tslib: 2.8.1
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/abort-controller": 2.1.2
+ "@typespec/ts-http-runtime": 0.3.2
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/abort-controller": 2.1.2
+ "@azure/core-auth": 1.10.1
+ "@azure/core-client": 1.10.1
+ "@azure/core-rest-pipeline": 1.22.2
+ "@azure/core-tracing": 1.3.1
+ "@azure/core-util": 1.13.1
+ "@azure/logger": 1.3.0
+ "@azure/msal-browser": 4.27.0
+ "@azure/msal-node": 3.8.4
+ open: 10.2.0
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ "@typespec/ts-http-runtime": 0.3.2
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/msal-common": 15.13.3
+
+ "@azure/[email protected]": {}
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/msal-common": 15.13.3
+ jsonwebtoken: 9.0.3
+ uuid: 8.3.2
+
+ "@azure/[email protected]":
+ dependencies:
+ "@azure/core-auth": 1.10.1
+ "@azure/core-client": 1.10.1
+ "@azure/core-http-compat": 2.3.1
+ "@azure/core-paging": 1.6.2
+ "@azure/core-rest-pipeline": 1.22.2
+ "@azure/core-tracing": 1.3.1
+ "@azure/core-util": 1.13.1
+ "@azure/logger": 1.3.0
+ events: 3.3.0
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
"@babel/helper-validator-identifier": 7.25.9
@@ -6097,6 +6472,14 @@ snapshots:
dependencies:
"@types/yargs-parser": 21.0.3
+ "@typespec/[email protected]":
+ dependencies:
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ tslib: 2.8.1
+ transitivePeerDependencies:
+ - supports-color
+
optional: true
@@ -6324,6 +6707,10 @@ snapshots:
base64-js: 1.5.1
ieee754: 1.2.1
+ dependencies:
+ run-applescript: 7.1.0
+
dependencies:
esbuild: 0.25.1
@@ -6521,6 +6908,15 @@ snapshots:
+
+ dependencies:
+ bundle-name: 4.1.0
+ default-browser-id: 5.0.1
+
+
@@ -6647,6 +7043,8 @@ snapshots:
+
@@ -6979,6 +7377,13 @@ snapshots:
- supports-color
optional: true
+ dependencies:
+ agent-base: 7.1.3
+ debug: 4.4.0([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
agent-base: 6.0.2
@@ -7050,6 +7455,8 @@ snapshots:
dependencies:
hasown: 2.0.2
+
@@ -7060,6 +7467,10 @@ snapshots:
dependencies:
is-extglob: 2.1.1
+ dependencies:
+ is-docker: 3.0.0
+
optional: true
@@ -7069,6 +7480,10 @@ snapshots:
+ dependencies:
+ is-inside-container: 1.0.0
+
@@ -7464,17 +7879,41 @@ snapshots:
+ dependencies:
+ jws: 4.0.1
+ lodash.includes: 4.3.0
+ lodash.isboolean: 3.0.3
+ lodash.isinteger: 4.0.4
+ lodash.isnumber: 3.0.3
+ lodash.isplainobject: 4.0.6
+ lodash.isstring: 4.0.1
+ lodash.once: 4.1.1
+ ms: 2.1.3
+ semver: 7.7.1
+
dependencies:
buffer-equal-constant-time: 1.0.1
ecdsa-sig-formatter: 1.0.11
safe-buffer: 5.2.1
+ dependencies:
+ buffer-equal-constant-time: 1.0.1
+ ecdsa-sig-formatter: 1.0.11
+ safe-buffer: 5.2.1
+
dependencies:
jwa: 2.0.0
safe-buffer: 5.2.1
+ dependencies:
+ jwa: 2.0.1
+ safe-buffer: 5.2.1
+
@@ -7505,8 +7944,22 @@ snapshots:
dependencies:
p-locate: 4.1.0
+
+
+
+
+
+
+
@@ -7781,6 +8234,13 @@ snapshots:
dependencies:
mimic-fn: 2.1.0
+ dependencies:
+ default-browser: 5.4.0
+ define-lazy-prop: 3.0.0
+ is-inside-container: 1.0.0
+ wsl-utils: 0.1.0
+
dependencies:
"@types/node": 18.19.76
@@ -8140,6 +8600,8 @@ snapshots:
transitivePeerDependencies:
- supports-color
+
dependencies:
queue-microtask: 1.2.3
@@ -8567,6 +9029,8 @@ snapshots:
+
@@ -8639,6 +9103,10 @@ snapshots:
+ dependencies:
+ is-wsl: 3.1.0
+