fix(tools): align type dependencies

Use the hoisted Zod version expected by AI SDK and update current generic and middleware option types.\n\nRefs #1545
This commit is contained in:
rishibalanagu0108 2026-10-14 15:03:00 +05:30
parent 3e771532e8
commit 96c6bee1e1
4 changed files with 5 additions and 7 deletions

View file

@ -232,7 +232,7 @@
"lru-cache": "^11.2.6",
"openai": "^4.104.0",
"supermemory": "^5.0.0",
"zod": "^4.1.5",
"zod": "^3.25.76",
},
"devDependencies": {
"@ai-sdk/anthropic": "^2.0.25",
@ -4297,8 +4297,6 @@
"@supermemory/tools/typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
"@supermemory/tools/zod": ["zod@4.6.5", "", {}, "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q=="],
"@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.8.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" }, "bundled": true }, "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg=="],
"@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.8.1", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="],

View file

@ -16,7 +16,7 @@
"lru-cache": "^11.2.6",
"openai": "^4.104.0",
"supermemory": "^5.0.0",
"zod": "^4.1.5"
"zod": "^3.25.76"
},
"devDependencies": {
"@ai-sdk/anthropic": "^2.0.25",

View file

@ -8,7 +8,7 @@ import type { MemoryMode } from "./types"
const escapeKeySegment = (segment: string): string =>
segment.replace(/%/g, "%25").replace(/:/g, "%3A")
export class MemoryCache<T = string> {
export class MemoryCache<T extends {} = string> {
private cache: LRUCache<string, T> = new LRUCache({ max: 100 })
/**

View file

@ -11,8 +11,8 @@ const openai = new OpenAI({
// Wrap OpenAI client with supermemory
const openaiWithSupermemory = withSupermemory(openai, {
containerTag: "test_user_123",
customId: "test_user_123_chat",
namespace: "test_user_123",
id: "test_user_123_chat",
verbose: true, // Enable logging to see what's happening
mode: "full", // Search both profile and query memories
addMemory: "always", // Auto-save conversations as memories