mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-27 06:15:15 +00:00
AI SDK 7 wraps file data as { type: "data" | "url" } and allows a bare "image" media type. The middleware only read the old shape, so image-only turns were not saved and mixed turns lost their images.
@ai-sdk/provider was a required peer, so npm installed provider 4 (Node 22 only) in AI SDK 5 and 6 apps. It is now optional, so apps keep the provider their ai version uses.
test:compat now checks that both image turns are saved and that the installed provider major matches the one ai depends on.
82 lines
2.3 KiB
JSON
82 lines
2.3 KiB
JSON
{
|
|
"name": "@supermemory/tools",
|
|
"type": "module",
|
|
"version": "3.1.1",
|
|
"description": "Memory tools for AI SDK, OpenAI, Voltagent and Mastra with supermemory",
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"dev": "tsdown --watch --ignore-watch .turbo",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest --testTimeout 100000",
|
|
"test:unit": "vitest run --testTimeout 100000 src/tools-shared.test.ts src/tool-operations.test.ts src/claude-memory.test.ts test/with-supermemory/unit.test.ts test/with-supermemory/conversation-conversion.test.ts test/openai-middleware.unit.test.ts test/mastra/unit.test.ts test/voltagent.unit.test.ts",
|
|
"test:watch": "vitest --watch --testTimeout 100000",
|
|
"test:compat": "bun test/ai-sdk-compat/run.ts"
|
|
},
|
|
"dependencies": {
|
|
"lru-cache": "^11.2.6",
|
|
"openai": "^4.104.0",
|
|
"supermemory": "^5.0.0",
|
|
"zod": "^4.1.5"
|
|
},
|
|
"devDependencies": {
|
|
"@ai-sdk/anthropic": "^2.0.25",
|
|
"@ai-sdk/openai": "^2.0.23",
|
|
"@ai-sdk/provider": "^3.0.0",
|
|
"@anthropic-ai/sdk": "^0.65.0",
|
|
"@voltagent/core": "^2.6.12",
|
|
"@mastra/core": "^1.0.0",
|
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
"@types/bun": "^1.2.21",
|
|
"ai": "^5.0.29",
|
|
"dotenv": "^16.6.1",
|
|
"tsdown": "^0.14.2",
|
|
"typescript": "^5.9.2",
|
|
"vitest": "3.2.6"
|
|
},
|
|
"peerDependencies": {
|
|
"@ai-sdk/provider": "^2.0.0 || ^3.0.0 || ^4.0.0",
|
|
"@voltagent/core": "^2.6.12",
|
|
"ai": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@ai-sdk/provider": {
|
|
"optional": true
|
|
},
|
|
"@voltagent/core": {
|
|
"optional": true
|
|
},
|
|
"ai": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./ai-sdk": "./dist/ai-sdk.js",
|
|
"./claude-memory": "./dist/claude-memory.js",
|
|
"./mastra": "./dist/mastra.js",
|
|
"./openai": "./dist/openai/index.js",
|
|
"./voltagent": "./dist/voltagent/index.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"repository": {
|
|
"url": "https://github.com/supermemoryai/supermemory",
|
|
"directory": "packages/tools"
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"sdk",
|
|
"openai",
|
|
"typescript",
|
|
"supermemory",
|
|
"memory",
|
|
"context",
|
|
"tools"
|
|
],
|
|
"license": "MIT"
|
|
}
|